Hi Everybody!

I just tried this:

>>> class C(object):
...    def method(self):
...        pass
...
>>> c = C()
>>> delattr(c, "method")

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'C' object attribute 'method' is read-only

How come? Who told the class to make the method read-only? I didn't!

Manu
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to