summaryrefslogtreecommitdiffstats
path: root/Include/pydebug.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-02-19 20:51:52 (GMT)
committerGuido van Rossum <guido@python.org>1998-02-19 20:51:52 (GMT)
commitf1dc0615e913fd0028a2fa6fda9607b3edfa76d5 (patch)
treef2d858ecea20146e601215cf16d4072c32765720 /Include/pydebug.h
parentc83db33781d9333581f90c1f427b2c64c4e7c0d8 (diff)
downloadcpython-f1dc0615e913fd0028a2fa6fda9607b3edfa76d5.zip
cpython-f1dc0615e913fd0028a2fa6fda9607b3edfa76d5.tar.gz
cpython-f1dc0615e913fd0028a2fa6fda9607b3edfa76d5.tar.bz2
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/pydebug.h')
0 files changed, 0 insertions, 0 deletions