8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4605a19 commit 5d54436Copy full SHA for 5d54436
Doc/c-api/typeobj.rst
@@ -1034,7 +1034,8 @@ and :c:data:`PyType_Type` effectively act as defaults.)
1034
the type, and the type object is INCREF'ed when a new instance is created, and
1035
DECREF'ed when an instance is destroyed (this does not apply to instances of
1036
subtypes; only the type referenced by the instance's ob_type gets INCREF'ed or
1037
- DECREF'ed).
+ DECREF'ed). Heap types should also :ref:`support garbage collection <supporting-cycle-detection>`
1038
+ as they can form a reference cycle with their own module object.
1039
1040
**Inheritance:**
1041
0 commit comments