I couldn't find the code, but I guess that the error here is not occurring 
due to an isinstance call; apparently that is discouraged and is not common 
in the standard library: http://www.canonical.org/~kragen/isinstance/

On Wednesday, 15 May 2013 16:39:57 UTC-7, Keshav Kini wrote:
>
> Volker Braun <vbrau...@gmail.com <javascript:>> 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 sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to