[sage-devel] Re: loads(dumps(G)) for G a graphics object

2009-05-07 Thread William Stein
On Thu, May 7, 2009 at 10:06 AM, kcrisman 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 imple

[sage-devel] Re: loads(dumps(G)) for G a graphics object

2009-05-07 Thread kcrisman
> > 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" cwi

[sage-devel] Re: loads(dumps(G)) for G a graphics object

2009-05-07 Thread William Stein
On Thu, May 7, 2009 at 9:32 AM, Carl Witty wrote: > > On Thu, May 7, 2009 at 7:01 AM, kcrisman wrote: >> I am hoping to help the push to 75% by adding some doctests to some of >> the plotting primitives.  But for some reason, the following always >> occurs: >> >> sage: G = some graphics object >

[sage-devel] Re: loads(dumps(G)) for G a graphics object

2009-05-07 Thread Carl Witty
On Thu, May 7, 2009 at 7:01 AM, kcrisman wrote: > I am hoping to help the push to 75% by adding some doctests to some of > the plotting primitives.  But for some reason, the following always > occurs: > > sage: G = some graphics object > sage: G == loads(dumps(G)) > False > > Nonetheless, no matt