File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1257,7 +1257,9 @@ Basic customization
1257
1257
is printed to ``sys.stderr `` instead. Also, when :meth: `__del__ ` is invoked in
1258
1258
response to a module being deleted (e.g., when execution of the program is
1259
1259
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
1261
1263
minimum needed to maintain external invariants. Starting with version 1.5,
1262
1264
Python guarantees that globals whose name begins with a single underscore are
1263
1265
deleted from their module before other globals are deleted; if no other
You can’t perform that action at this time.
0 commit comments