mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Documented gc.get_referrers() as dangerous.
SF bug 793822
This commit is contained in:
parent
2b3eb4062c
commit
3be6d5d320
1 changed files with 5 additions and 0 deletions
|
@ -96,6 +96,11 @@ be listed among the resulting referrers. To get only currently live
|
|||
objects, call \function{collect()} before calling
|
||||
\function{get_referrers()}.
|
||||
|
||||
Care must be taken when using objects returned by
|
||||
\function{get_referrers()} because some of them could still be under
|
||||
construction and hence in a temporarily invalid state. Avoid using
|
||||
\function{get_referrers()} for any purpose other than debugging.
|
||||
|
||||
\versionadded{2.2}
|
||||
\end{funcdesc}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue