> > So, to answer your question: what you are decorating are functions, not > > methods. > > Can you overload -type-'s decision of what to 'bind'?... whenever it > is it makes it.
>>> from types import FunctionType, MethodType >>> class A( FunctionType ): pass ... Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: type 'function' is not an acceptable base type >>> class A( MethodType ): pass ... Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: type 'method' is not an acceptable base type Unacceptable. -- http://mail.python.org/mailman/listinfo/python-list