Filip Gruszczyński wrote:
'a' is an instance of class A. You're trying to delete 'foo' from the instance.I am trying to delete a method from a class. It's easy to delete other attributes, but when I try:class A:... def foo(): ... pass ...a = A() del a.fooI get Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: A instance has no attribute 'foo' Why is it so and how may still delete it?
-- http://mail.python.org/mailman/listinfo/python-list