Volker Braun <[email protected]> writes: > Anything that does isinstance(i,int) in the Python standard library > is broken. Usually thats when multiple input types are allowed. In > this case the argument to match.group() could be a string if you use > the ?P<name> syntax to name the match group.
Yup. For example the simplejson maintainer was even kind enough to patch away such a piece of code for our purposes a little while ago, so that we could provide Sage Integers as indentation widths in `json.dump`. There is probably a lot of Python code out there which fits this pattern. I guess one could claim it's not Pythonic since it doesn't follow duck typing. -Keshav -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-devel?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
