On Mar 27, 2009, at 5:22 AM, Martin Raum wrote:

> Hi,
>
> There seems to be a quite strange behaviour of _richcmp in
> structure.element.pyx. If the parents need to be coerced, afterwards
> left._richcmp_ is called. But if they don't, left.__cmp__ is called,
> hence
> assuming a totally ordered parent. I don't see any reason for such a
> behaviour and it renders correct and easy implementations of
> partially
> ordered parents almost impossible.
> Shouldn't this be revised? I might do it.

It would be very good to cleanup/revise the code in there, but  
beware, it is rather fragile. There has also been discussion to make  
*less* things comparable, so it should probably be done with that in  
mind.

Just curious, did you have a specific use in mind?

- Robert


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to