You forgot to pass 'cls' to type.__init__. http://code.google.com/p/benjhayden/source/browse/trunk/plugins.py
Nice example! Most use an external class separately bound by assignment. Defining the __metaclass__ class inside the Plugin base class actually makes the example more meaningful (IMHO).
You forgot to pass 'cls' to type.__init__.
http://code.google.com/p/benjhayden/source/browse/trunk/plugins.py
Nice example! Most use an external class separately bound by assignment. Defining the __metaclass__ class inside the Plugin base class actually makes the example more meaningful (IMHO).