Skip to content
Snippets Groups Projects
Unverified Commit b61b20db authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub
Browse files

Add a warning block around the get_referrers() documentation (GH-24511) (GH-24544)


(cherry picked from commit 813db24f)

Co-authored-by: default avatarPablo Galindo <Pablogsal@gmail.com>
parent d0d4d308
No related branches found
No related tags found
No related merge requests found
......@@ -132,6 +132,7 @@ The :mod:`gc` module provides the following functions:
resulting referrers. To get only currently live objects, call :func:`collect`
before calling :func:`get_referrers`.
.. warning::
Care must be taken when using objects returned by :func:`get_referrers` because
some of them could still be under construction and hence in a temporarily
invalid state. Avoid using :func:`get_referrers` for any purpose other than
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment