On Thu, May 7, 2009 at 10:06 AM, kcrisman <kcris...@gmail.com> wrote:
>
>> > Because graphics objects don't implement equality (there are no __eq__
>> > or __cmp__ methods defined), so the default implementation is used,
>> > which is "is" (object identity, pointer equality).
>>
>> > Carl
>>
>> Ergo, you should implement __cmp__.
>
> Umm... how would I do that?  Or is "you" cwitty?  Maybe if one of you
> pointed me to a "good" implementation of __cmp__ for a similar type of
> object, that would be helpful.

You = somebody :-)

> I don't know that I could do that in time for 4.0, though, so I'll
> keep working on the other stuff with current loads(dumps()) behavior,
> since it is already in two of the plot files.

Yep, if you don't know how to implement __cmp__, then just don't
implement the loads(dumps(...))) doctests at all.

William

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