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 6dd1e1a commit 33ae038Copy full SHA for 33ae038
Misc/NEWS.d/next/Library/2025-03-17-23-07-57.gh-issue-100926.B8gcbz.rst
@@ -1,7 +1,7 @@
1
Move :func:`ctypes.POINTER` types cache from the global ``_pointer_type_cache``
2
to the corresponding :mod:`ctypes` types to avoid unlimited growth of the cache.
3
-As from now, :mod:`ctypes` pointer types can be accessed with
4
-``__pointer_type__`` attribute. :func:`ctypes.POINTER` checks this attribute
+As from now, :mod:`ctypes` pointer types can be accessed with a
+:attr:`~_CData.__pointer_type__` attribute. :func:`ctypes.POINTER` checks this attribute
5
first before creating a new pointer type, so if needed to mimic :mod:`ctypes`
6
pointer type then type should have this attribute
7
-(see PyCSimpleTypeAsMetaclassTest for example).
+(see :ref:`ctypes-pointers-ctypes-like-types`).
0 commit comments