On Sat, Aug 23, 2008 at 4:00 PM, Fredrik Johansson <[EMAIL PROTECTED]> wrote: > > On Sat, Aug 23, 2008 at 9:57 PM, Nils Bruin <[EMAIL PROTECTED]> wrote: >> >> Would it break Python too much if comparison would simply throw an >> exception in these cases? > > Hardly, considering that this is what Python itself does: > >>>> 1+1j > 1-1j > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > TypeError: no ordering relation is defined for complex numbers
http://www.ibm.com/developerworks/library/l-python-elegance-1.html --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---