On Thu, May 7, 2009 at 7:01 AM, kcrisman <kcris...@gmail.com> 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 matter how hard I try, I cannot actually find a > difference between G and loads(dumps(G)) when I view both of them, > look at xmin(), options(), etc. Why aren't they ==?
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 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---