Status: Started Owner: [email protected] Labels: Type-Defect Priority-Medium Milestone-Release0.7.0 NeedsReview
New issue 1942 by [email protected]: Refactor the singleton mechanism http://code.google.com/p/sympy/issues/detail?id=1942 There are some issues with the singleton code which make it more complicated, less efficient and less flexible than it could be: * It's implemented as a metaclass, SingletonMeta, which does nothing that couldn't be expressed more simply with an ordinary base class. * There are no less than 3 dicts holding singleton-related data. * It's impossible to reuse the code to implement a separate singleton store, though this functionality would be useful in relation with Predicates (see issue 1903). I've fixed this in my branch "Singleton-class" [http://github.com/rlamy/sympy/commits/Singleton-class] (which is on top of "core-refactor-4", see issue 1896). Please review. -- You received this message because you are subscribed to the Google Groups "sympy-issues" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy-issues?hl=en.
