diff options
author | Guido van Rossum <guido@python.org> | 1998-02-19 20:58:44 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-02-19 20:58:44 (GMT) |
commit | 05f9dce34f3a91e1a9d69e3e85c93c506e0cc6ba (patch) | |
tree | bb7c62cd1102037ed02bb70378e5616cf98bb210 /Doc/libfl.tex | |
parent | bd36dbaaa53929e1bd8609e734c7a0fa128b7bd2 (diff) | |
download | cpython-05f9dce34f3a91e1a9d69e3e85c93c506e0cc6ba.zip cpython-05f9dce34f3a91e1a9d69e3e85c93c506e0cc6ba.tar.gz cpython-05f9dce34f3a91e1a9d69e3e85c93c506e0cc6ba.tar.bz2 |
Moved clear_carefully() to _PyModule_Clear() in moduleobject.c
(modified) and use that.
Some differences in the cleanup algorithm:
- Clear __main__ before the other modules.
- Delete more sys variables: including ps1, ps2, exitfunc, argv, and
even path -- this will prevent new imports!
- Restore stdin, stdout, stderr from __stdin__, __stdout__,
__stderr__, effectively deleting hooks that the user might have
installed -- so their (the hooks') destructors will run.
Diffstat (limited to 'Doc/libfl.tex')
0 files changed, 0 insertions, 0 deletions