diff options
author | Fred Drake <fdrake@acm.org> | 2001-03-23 17:42:09 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-03-23 17:42:09 (GMT) |
commit | 8f6df46d40cc8d13c1f4e7dc532163653afe8b8f (patch) | |
tree | eb8e30f3ac1fd8ac2f531c7286128d6ce528c7e6 /Doc | |
parent | 6870bba459a7c30908c8640b20023e9817e8ac53 (diff) | |
download | cpython-8f6df46d40cc8d13c1f4e7dc532163653afe8b8f.zip cpython-8f6df46d40cc8d13c1f4e7dc532163653afe8b8f.tar.gz cpython-8f6df46d40cc8d13c1f4e7dc532163653afe8b8f.tar.bz2 |
Strengthen the constraints on calling PyObject_GC_Fini().
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/api/api.tex | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/api/api.tex b/Doc/api/api.tex index 5726341..8bf0892 100644 --- a/Doc/api/api.tex +++ b/Doc/api/api.tex @@ -5029,6 +5029,11 @@ pair of rules: objects. The deallocator (\member{tp_dealloc} handler) should call this for the object before any of the fields used by the \member{tp_traverse} handler become invalid. + + \strong{Note:} Any container which may be referenced from another + object reachable by the collector must itself be tracked by the + collector, so it is generally not safe to call this function + anywhere but in the object's deallocator. \end{cfuncdesc} The \member{tp_traverse} handler accepts a function parameter of this |