File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1257,7 +1257,9 @@ Basic customization
12571257 is printed to ``sys.stderr `` instead. Also, when :meth: `__del__ ` is invoked in
12581258 response to a module being deleted (e.g., when execution of the program is
12591259 done), other globals referenced by the :meth: `__del__ ` method may already have
1260- been deleted. For this reason, :meth: `__del__ ` methods should do the absolute
1260+ been deleted or in the process of being torn down (e.g. the import
1261+ machinery shutting down). For this reason, :meth: `__del__ ` methods
1262+ should do the absolute
12611263 minimum needed to maintain external invariants. Starting with version 1.5,
12621264 Python guarantees that globals whose name begins with a single underscore are
12631265 deleted from their module before other globals are deleted; if no other
You can’t perform that action at this time.
0 commit comments