Mercurial > cpython-lru_cache-weakref
comparison Python/structmember.c @ 5938:222faeb43d02 legacy-trunk
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). */
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 05 Aug 1997 02:20:51 +0000 |
| parents | 5880384d7c71 |
| children | ff31f2501742 |
comparison
equal
deleted
inserted
replaced
| 5937:5a4d181ffffd | 5938:222faeb43d02 |
|---|
