Hi everybody ! When inheriting from Element, copy does not copy the dictionary:
sage: from sage.structure.element import Element sage: class Demo(Element): pass ....: sage: bla = Demo(parent = ZZ) sage: bla.a = [1,2,3] sage: blo = copy(bla) sage: blo is bla False sage: blo.__dict__ is bla.__dict__ True But it does with SageObject: sage: class Demo2(SageObject): pass ....: sage: bla = Demo2() sage: blo = copy(bla) sage: blo is bla False sage: blo.__dict__ is bla.__dict__ False Is this intended or a bug ? Cheers, Florent -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org