Removing objects of a superclass?

Will Ware wware at world.std.com
Tue Feb 1 11:38:38 EST 2000


Gerrit Holl (gerrit.holl at pobox.com) wrote:
: is it possible to _remove_ objects of a superclass?
: ...I need to remove some methods like .append and .pop.

If the purpose is to simply prevent the user from calling those
methods, you could overload them with methods that raise exceptions.
-- 
   People say that everyone has a few skeletons in their closet. Not me.
   Well, not yet anyway. I mean, the bodies are still decomposing.
Will Ware		email: wware[at]world[dot]std[dot]com



More information about the Python-list mailing list