| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1052,7 +1052,8 @@ and :c:data:`PyType_Type` effectively act as defaults.) | |||
| 1052 | 1052 | the type, and the type object is INCREF'ed when a new instance is created, and | |
| 1053 | 1053 | DECREF'ed when an instance is destroyed (this does not apply to instances of | |
| 1054 | 1054 | subtypes; only the type referenced by the instance's ob_type gets INCREF'ed or | |
| 1055 | - DECREF'ed). | ||
| 1055 | + DECREF'ed). Heap types should also :ref:`support garbage collection <supporting-cycle-detection>` | ||
| 1056 | + as they can form a reference cycle with their own module object. | ||
| 1056 | 1057 | ||
| 1057 | 1058 | **Inheritance:** | |
| 1058 | 1059 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments