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 d3b5c48 commit 4ef74c0Copy full SHA for 4ef74c0
1 file changed
Doc/extending/newtypes_tutorial.rst
@@ -271,6 +271,7 @@ the object's type might not be :class:`!CustomType`, because the object may
271
be an instance of a subclass.
272
273
.. note::
274
+
275
The explicit cast to ``CustomObject *`` above is needed because we defined
276
``Custom_dealloc`` to take a ``PyObject *`` argument, as the ``tp_dealloc``
277
function pointer expects to receive a ``PyObject *`` argument.
0 commit comments