On Fri, Apr 15, 2011 at 12:40:20PM +1200, Francois Bissey wrote:
> After a small number of patch (#11156 from Nicolas M. Thiery, and 2 in
> #9958, one of which is from my friend Steve Trogdon) we have a clear view
> of what needs to be fixed. Test done on 4.7.alpha4 + #7377 and #9969
> 
> Aside from the chatter due to change of format and messages here is
> what is interesting:
> ...
> The following tests results have to be investigated:
> ...

>  sage -t -long  -force_lib devel/sage-main/sage/structure/parent.pyx
>  **********************************************************************
>  File "/usr/share/sage/devel/sage-main/sage/structure/parent.pyx", line
>  634:
>      sage: CCls()._test_eq()
>  Expected:
>      Traceback (most recent call last):
>      ...
>      AssertionError: <class '__main__.CCls'> == None
>  Got nothing

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 remember noticing planned changes for comparison operators, in
particular between objects that are not in the same class. I guess
this should be fairly harmless, but we should check out the
details. Do you have a pointer to the appropriate PEPS?

Cheers,
                                Nicolas
--
Nicolas M. Thiéry "Isil" <[email protected]>
http://Nicolas.Thiery.name/

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

Reply via email to