> Does hitting Enter again not do it? > David > No! huuuuuu it didn't earlier this afternoon for some reason. I had an ipython message. Never mind so I do what Nicolas asked: sage: class CCls(Parent): ....: def __eq__(self, other): ....: return True ....: sage: x = CCls() sage: x == None True
So I still get True and not false as he expected. Francois > On Wed, Apr 20, 2011 at 22:04, Francois Bissey < > > [email protected]> wrote: > > > On Wed, Apr 20, 2011 at 06:41:26PM -0700, François wrote: > > > > > This test reduces to: > > > > > sage: class CCls(Parent): > > > > > ... def __eq__(self, other): > > > > > ... return True > > > > > sage: x = CCls() > > > > > sage: x == None > > > > > True > > > > > > > > > > and I assume you get False instead with Python 2.7, right? > > > > > > > > I have shown the whole output of the doctest failure. What was > > > > expected was a traceback ending up with an "AssertionError" message > > > > and I got absolutely nothing instead. > > > > > > Yes. Can you please check that I did not screw up my reduced example > > > and that it indeed returns False on Python 2.7 instead of True on 2.6? > > > > OK I am trying but what do I do to get back to the normal sage prompt > > after "return True"? > > Not a real python specialist here. > > > > Francois > > > > This email may be confidential and subject to legal privilege, it may > > not reflect the views of the University of Canterbury, and it is not > > guaranteed to be virus free. If you are not an intended recipient, > > please notify the sender immediately and erase all copies of the message > > and any attachments. > > > > Please refer to http://www.canterbury.ac.nz/emaildisclaimer for more > > information. > > > > -- > > > > To post to this group, send an email to [email protected] > > To unsubscribe from this group, send an email to > > [email protected] > > For more options, visit this group at > > http://groups.google.com/group/sage-devel > > URL: http://www.sagemath.org This email may be confidential and subject to legal privilege, it may not reflect the views of the University of Canterbury, and it is not guaranteed to be virus free. If you are not an intended recipient, please notify the sender immediately and erase all copies of the message and any attachments. Please refer to http://www.canterbury.ac.nz/emaildisclaimer for more information. -- To post to this group, send an email to [email protected] To unsubscribe from this group, send an email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
