Comment #4 on issue 1942 by [email protected]: Refactor the singleton mechanism
http://code.google.com/p/sympy/issues/detail?id=1942
I had the wrong idea earlier. Being a Singleton is clearly a property of the class, not of the instance: S.One should behave the same whether it's defined as the singleton class One() or as an Integer. So SingletonMeta has been renamed 'Singleton' and singleton classes should now be written exactly like non-singleton ones, and in particular have a __new__, the only difference being the metaclass.
The code is at http://github.com/rlamy/sympy/tree/Singleton-4 I'm sending a pull request as well. -- 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.
