Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d1e88a commit c60137bCopy full SHA for c60137b
1 file changed
Doc/reference/datamodel.rst
@@ -69,6 +69,8 @@ are still reachable.
69
containing circular references. See the documentation of the :mod:`gc`
70
module for information on controlling the collection of cyclic garbage.
71
Other implementations act differently and CPython may change.
72
+ Do not write code that depends on immediate finalization of objects
73
+ when they become unreachable (ex: always close your files).
74
75
Note that the use of the implementation's tracing or debugging facilities may
76
keep objects alive that would normally be collectable. Also note that catching
0 commit comments