Dear Sage developers, Let me recycle this thread to report progress on the bookshelf of standard object behavior. I just posted a small patch:
http://sagetrac.org/sage_trac/ticket/5120#comment:3 which implements sage.structure.UniqueRepresentation class. Derived classes inherit a unique representation behavior for their instances. Originates from sage.categories.category.uniq with: - Long doc (6 pages for 12 lines of code) - Default implementation of__eq__ and __hash__ - Handling of pickling in the simple cases - Avoids multiple calls to __init__ - Enables rewritings of the constructor argument This is a call for comments! (and reviews). If the principle is validated, it could be worthwhile to use it quite systematically for parents. Best, Nicolas -- Nicolas M. ThiƩry "Isil" <nthi...@users.sf.net> http://Nicolas.Thiery.name/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---