Skip to content
Snippets Groups Projects
Unverified Commit 813db24f authored by Pablo Galindo's avatar Pablo Galindo Committed by GitHub
Browse files

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

parent d0204963
No related branches found
No related tags found
No related merge requests found
......@@ -135,6 +135,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