Guido van Rossum
05f9dce34f
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.
1998-02-19 20:58:44 +00:00
..
1996-10-25 14:44:06 +00:00
1997-12-10 05:51:47 +00:00
1997-12-31 05:53:15 +00:00
1997-10-20 23:24:07 +00:00
1997-12-09 14:11:39 +00:00
1996-10-25 14:44:06 +00:00
1997-07-19 21:54:24 +00:00
1998-02-06 22:30:29 +00:00
1998-01-19 22:22:44 +00:00
1997-07-19 19:48:41 +00:00
1996-10-25 14:44:06 +00:00
1996-10-25 14:44:06 +00:00
1997-09-05 07:33:22 +00:00
1997-09-30 22:00:13 +00:00
1997-07-19 19:48:41 +00:00
1997-07-19 19:48:41 +00:00
1997-05-07 23:51:07 +00:00
1996-08-29 18:10:41 +00:00
1998-02-19 20:58:44 +00:00
1998-01-19 22:23:08 +00:00
1997-09-05 07:33:22 +00:00
1997-07-19 21:59:47 +00:00
1997-07-26 23:30:18 +00:00
1996-10-25 14:44:06 +00:00
1997-11-20 20:35:45 +00:00
1997-12-15 17:27:35 +00:00
1997-10-20 23:50:01 +00:00
1997-11-03 22:08:36 +00:00
1998-02-06 22:27:24 +00:00
1997-04-29 20:08:16 +00:00
1996-08-29 18:10:30 +00:00
1996-10-25 14:44:06 +00:00
1997-04-29 20:08:16 +00:00
1998-02-19 20:53:06 +00:00
1996-10-25 14:44:06 +00:00
1996-10-25 14:44:06 +00:00
1996-10-25 14:44:06 +00:00
1997-08-14 20:12:58 +00:00
1997-11-22 21:53:48 +00:00
1997-06-02 22:25:45 +00:00
1997-05-05 20:56:21 +00:00
1996-10-25 14:44:06 +00:00
1997-11-22 21:53:48 +00:00
1997-05-22 22:35:47 +00:00