diff options
author | Guido van Rossum <guido@python.org> | 1998-02-19 20:51:52 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-02-19 20:51:52 +0000 |
commit | f1dc0615e913fd0028a2fa6fda9607b3edfa76d5 (patch) | |
tree | f2d858ecea20146e601215cf16d4072c32765720 /Include/moduleobject.h | |
parent | Added \label{} for logical addressing. (diff) | |
download | cpython-f1dc0615e913fd0028a2fa6fda9607b3edfa76d5.tar.gz cpython-f1dc0615e913fd0028a2fa6fda9607b3edfa76d5.tar.bz2 cpython-f1dc0615e913fd0028a2fa6fda9607b3edfa76d5.zip |
Add internal routine _PyModule_Clear(), which does approximately what
clear_carefully() used to do in import.c. Differences: leave only
__builtins__ alone in the 2nd pass; and don't clear the dictionary (on
the theory that as long as there are references left to the
dictionary, those might be destructors that might expect __builtins__
to be alive when they run; and __builtins__ can't normally be part of
a cycle).
Diffstat (limited to 'Include/moduleobject.h')
-rw-r--r-- | Include/moduleobject.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/moduleobject.h b/Include/moduleobject.h index a435b7f54d1..03bc9f7b73c 100644 --- a/Include/moduleobject.h +++ b/Include/moduleobject.h @@ -44,6 +44,7 @@ extern DL_IMPORT(PyTypeObject) PyModule_Type; extern PyObject *PyModule_New Py_PROTO((char *)); extern PyObject *PyModule_GetDict Py_PROTO((PyObject *)); extern char *PyModule_GetName Py_PROTO((PyObject *)); +extern void _PyModule_Clear Py_PROTO((PyObject *)); #ifdef __cplusplus } |