Anthony Tolle wrote: > I'm wrapping an instance of <type 'staticmethod'> > I'm wrapping an instance of <type 'classmethod'> > I'm wrapping an instance of <type 'function'>
Hmmm, so what you're really worried about is that people will be able to create static methods without using staticmethod(). I think the solution to this has already been mentioned. If you're wrapping a method in something that inserts an extra argument at the beginning, then you write it as @somewrapper def meth(extra_arg, self, arg1, arg2, ...) ... Simple, explicit, non-magical, no introspection required. -- Greg _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com