SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72140 0 19 Python

New rules for deleting modules. Rather than having an elaborate

scheme based on object's types, have a simple two-phase scheme based
on object's *names*:

	/* To make the execution order of destructors for global
	   objects a bit more predictable, we first zap all objects
	   whose name starts with a single underscore, before we clear
	   the entire dictionary.  We zap them by replacing them with
	   None, rather than deleting them from the dictionary, to
	   avoid rehashing the dictionary (to some extent). */
G
Guido van Rossum committed
085d269f1d91bcbe051ee423089230dd072d1cc4
Parent: f9c90c5