Comment #1 on issue 3599 by [email protected]: Apply 2to3 "idioms" fixer to code base
http://code.google.com/p/sympy/issues/detail?id=3599

And a note on "type(x) is A" vs. "isinstance(x, A)". In the library code, isinstance is almost always better, because this works with subclasses, meaning that the code will satisfy the Liskov substation principle (http://en.wikipedia.org/wiki/Liskov_substitution_principle). But in test files, we often want to make sure that something is exactly a given type, not just a subclass, and therefore comparing the type is correct. It may also be correct in library code in very rare cases, but those are so rare that I doubt there are any in SymPy.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to