Comment #5 on issue 1648 by asmeurer: trigsimp fails
http://code.google.com/p/sympy/issues/detail?id=1648

There is one exception Python's strange comparison rules.  Complex numbers,  
which cannot be ordered, raise an
exception if you try to compare them:

>>> 1j > 0
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
TypeError: no ordering relation is defined for complex numbers

Does anyone know of a PEP or Python documentation page that explains  
Python's strange allowing of comparison
of unrelated types, like

>>> "s" >  []
True

or even how it is done. I would have guessed hash values, but lists are  
unhashable.  Whatever it is, it seems to
maintain the trichotomy and transitivity, which if we define any kind of  
comparison, it should hold those two laws.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
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