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 7211a34 commit f209726Copy full SHA for f209726
Doc/c-api/type.rst
@@ -327,6 +327,14 @@ Type Objects
327
328
.. versionadded:: 3.12
329
330
+.. c:function:: int PyType_SUPPORTS_WEAKREFS(PyTypeObject *type)
331
+
332
+ Return true if instances of *type* supports creating weak references, false
333
+ otherwise. This function always succeeds. *type* must not be ``NULL``.
334
335
+ .. seealso::
336
+ * :ref:`weakrefobjects`
337
+ * :py:mod:`weakref`
338
339
Creating Heap-Allocated Types
340
.............................
0 commit comments