staticmethod not callable? (trying to make a Singleton metaclass..)

2009-11-29 Thread inhahe
I'm trying to come up with a system for singletons, where I don't have to modify anything for an individual class except to define __metaclass__ or, if possible, to inherit another class. I want it to raise an error if making a duplicate instance of a class is attempted, rather than to return the

Re: staticmethod not callable? (trying to make a Singleton metaclass..)

2009-11-29 Thread Gabriel Genellina
En Sun, 29 Nov 2009 10:25:21 -0300, inhahe inh...@gmail.com escribió: I'm trying to come up with a system for singletons, where I don't have to modify anything for an individual class except to define __metaclass__ or, if possible, to inherit another class. I want it to raise an error if