On Aug 22, 10:23 am, Danny <[EMAIL PROTECTED]> wrote: > 1) how do I dynamically inspect an object to determine if it has an instance > method? (there is a class method with the same name)
class Foo: def foo(self): pass x = Foo() import types >>> isinstance(x.foo, types.MethodType) True > 2) how do I dynamically delete the instance method? >From the instance? You can't, you have to delete it from the class: >>> del Foo.foo -- http://mail.python.org/mailman/listinfo/python-list