Undefining functions and classes

Vesselin Iliev Peev VesselinPeev at operamail.com
Wed Jul 11 18:03:22 EDT 2001

Does anyone know how to undefine a function or class in Python
i.e. if we execute
def func()

and then, supposedly
unbind func



will give us an error that the symbol is not defined

If you anyone can point me to a way of doing this (preferably via C) or 
through Python, I'd be very grateful. As you can guess, I need this to 
conserve memory during prolonged interpreter execution (deleting unused 
function/class defs)
Thanks in advance.

More information about the Python-list mailing list