cpython/Python
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
..
Makefile.in frozenmain.c is now also in the library, 1997-07-19 21:59:47 +00:00
atof.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
bltinmodule.c Need a cast when comparing type object in isinstance() 1997-12-10 05:51:47 +00:00
ceval.c Last-minute fix for Jim H: don't die after del sys.stdout 1997-12-31 05:53:15 +00:00
compile.c Don't use sscanf(s, "%x", &c) to parse \xX... escapes; hardcode it. 1997-10-20 23:24:07 +00:00
dup2.c
errors.c Fix subtle bug in cleanup code in PyErr_NormalizeException(), detected 1997-12-09 14:11:39 +00:00
fmod.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
frozen.c Oops -- this contains frozen bytecode, but it was Python 1.4 bytecode! 1997-07-19 21:54:24 +00:00
frozenmain.c Set Py_FrozenFlag, to suppress error messages from getpath.c. 1998-02-06 22:30:29 +00:00
getargs.c Protect PyErr_Format format string argument from overflow (ironically, 1998-01-19 22:22:44 +00:00
getcompiler.c Make it return a _const_ char*. 1997-07-19 19:48:41 +00:00
getcopyright.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
getcwd.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
getmtime.c First part of package support. 1997-09-05 07:33:22 +00:00
getopt.c Fix a bug in this code that made it do the wrong thing when an option 1997-09-30 22:00:13 +00:00
getplatform.c Make it return a _const_ char*. 1997-07-19 19:48:41 +00:00
getversion.c Make it return a _const_ char*. 1997-07-19 19:48:41 +00:00
graminit.c Oops, missed some renamings. 1997-05-07 23:51:07 +00:00
hypot.c *** empty log message *** 1996-08-29 18:10:41 +00:00
import.c Moved clear_carefully() to _PyModule_Clear() in moduleobject.c 1998-02-19 20:58:44 +00:00
importdl.c Protect PyErr_Format format string argument from overflow. 1998-01-19 22:23:08 +00:00
importdl.h First part of package support. 1997-09-05 07:33:22 +00:00
marshal.c Plugged a leak. (The same as the one plugged in compile.c -- forgot 1997-07-26 23:30:18 +00:00
memmove.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
modsupport.c Plug memory leak in Py_BuildValue when using {...} to construct dictionaries. 1997-11-20 20:35:45 +00:00
mystrtoul.c For base 10, cast unsigned long to long before testing overflow. 1997-12-15 17:27:35 +00:00
pyfpe.c Some patches to Lee Busby's fpectl mods that accidentally didn't make it 1997-10-20 23:50:01 +00:00
pystate.c The warning about thread still having a frame now only happens in 1997-11-03 22:08:36 +00:00
pythonmain.c Allow mac user to set "command line flags" by option-starting python. 1995-07-29 13:53:59 +00:00
pythonrun.c Ehm, three unrelated changes. 1998-02-06 22:27:24 +00:00
sigcheck.c Quickly renamed the remaining files -- this directory is done. 1997-04-29 20:08:16 +00:00
strdup.c Needed more includes... 1996-08-29 18:10:30 +00:00
strerror.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
strtod.c Always include config.h 1996-08-19 22:12:39 +00:00
structmember.c Quickly renamed the remaining files -- this directory is done. 1997-04-29 20:08:16 +00:00
sysmodule.c Make backup copies of stdin, stdout, stderr as __stdin__, __stdout__, 1998-02-19 20:53:06 +00:00
thread.c os2 patch by Jeff Rush 1997-11-22 21:53:48 +00:00
thread_cthread.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
thread_foobar.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
thread_lwp.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
thread_nt.h Use _beginthread() and _endthread() in favor of CreateThread() and 1997-08-14 20:12:58 +00:00
thread_os2.h os2 patch by Jeff Rush 1997-11-22 21:53:48 +00:00
thread_pthread.h Add default case (standard conformance) to avoid piling up 1997-06-02 22:25:45 +00:00
thread_sgi.h Massive changes for separate thread state management. 1997-05-05 20:56:21 +00:00
thread_solaris.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
traceback.c PyFile_WriteString now returns an error indicator instead of calling 1997-05-22 22:35:47 +00:00