mirror of
https://github.com/python/cpython.git
synced 2026-01-04 06:22:20 +00:00
Explicitly mention that people should not depend on immediate
finalization of objects. HG Enter commit message. Lines beginning with 'HG:' are removed.
This commit is contained in:
commit
f2b5673f73
1 changed files with 2 additions and 0 deletions
|
|
@ -69,6 +69,8 @@ are still reachable.
|
|||
containing circular references. See the documentation of the :mod:`gc`
|
||||
module for information on controlling the collection of cyclic garbage.
|
||||
Other implementations act differently and CPython may change.
|
||||
Do not depend on immediate finalization of objects when they become
|
||||
unreachable (ex: always close files).
|
||||
|
||||
Note that the use of the implementation's tracing or debugging facilities may
|
||||
keep objects alive that would normally be collectable. Also note that catching
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue