Mercurial > cpython-lru_cache-weakref
comparison Python/structmember.c @ 7202:fed3d200fb56 legacy-trunk
Two more refinements of the cleanup process.
(1) Explicitly clear __builtin__._ and sys.{last,exc}_* before
clearing anything else. These are common places where user values
hide and people complain when their destructors fail. Since the
modules containing them are deleted *last* of all, they would come too
late in the normal destruction order. Sigh.
(2) Add some debugging aid to cleanup (after a suggestion by Marc
Lemburg) -- print the names of the modules being cleaned, and (when
-vv is used) print the names of the variables being cleared.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 06 Feb 1998 17:16:02 +0000 |
| parents | 5880384d7c71 |
| children | ff31f2501742 |
comparison
equal
deleted
inserted
replaced
| 7201:720e9183961e | 7202:fed3d200fb56 |
|---|
