mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Reword the finalization note.
This commit is contained in:
parent
c60137b272
commit
c542547211
1 changed files with 2 additions and 2 deletions
|
@ -69,8 +69,8 @@ are still reachable.
|
||||||
containing circular references. See the documentation of the :mod:`gc`
|
containing circular references. See the documentation of the :mod:`gc`
|
||||||
module for information on controlling the collection of cyclic garbage.
|
module for information on controlling the collection of cyclic garbage.
|
||||||
Other implementations act differently and CPython may change.
|
Other implementations act differently and CPython may change.
|
||||||
Do not write code that depends on immediate finalization of objects
|
Do not depend on immediate finalization of objects when they become
|
||||||
when they become unreachable (ex: always close your files).
|
unreachable (ex: always close files).
|
||||||
|
|
||||||
Note that the use of the implementation's tracing or debugging facilities may
|
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
|
keep objects alive that would normally be collectable. Also note that catching
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue