File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -532,7 +532,8 @@ ctypes
532532
533533* Move :func: `ctypes.POINTER ` types cache from the global ``_pointer_type_cache ``
534534 to the corresponding :mod: `ctypes ` types. This will stop the cache from
535- growing without limits in some situations.
535+ growing without limits in some situations. Also :mod: `ctypes ` pointer types
536+ can be accessed with ``__pointer_type__ `` attribute from corresponding type.
536537 (Contributed by Sergey Miryanov in :gh: `100926 `).
537538
538539datetime
Original file line number Diff line number Diff line change 11Move :func: `ctypes.POINTER ` types cache from the global ``_pointer_type_cache ``
22to 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
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).
You can’t perform that action at this time.
0 commit comments