forgetting state

Martin v. Loewis martin at v.loewis.de
Sun Mar 24 04:12:14 EST 2002


emersonwood at yahoo.com (Emerson Wood) writes:

> Hi, how would I make a python interpreter
> shell forget everything that I've done
> and run a script or accepts commands as
> if it were first run?

You will explicitly need to clear all state. There is no builtin
feature to do that. In addition, it is not possible at all to unload
extension modules.

Regards,
Martin




More information about the Python-list mailing list