delete a methode of a object?
Martin v. Löwis
loewis at informatik.hu-berlin.de
Wed Oct 9 05:46:42 EDT 2002
Thomas Marek <Marek at biosolveit.de> writes:
> is it possible to delete a method of a object?
No. You can delete the method in the class, but that would apply to
all instances. You can also create a new class that does not have this
method, and make this class the class of the object.
However, I recommend that you add a this method to the object with an
implementation that raises NotImplementedError.
Regards,
Martin
More information about the Python-list
mailing list