]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-100926: Move ctype's pointers cache from _pointer_type_cache to StgInfo (GH-131282)
authorSergey Miryanov <sergey.miryanov@gmail.com>
Fri, 2 May 2025 17:06:37 +0000 (10:06 -0700)
committerGitHub <noreply@github.com>
Fri, 2 May 2025 17:06:37 +0000 (19:06 +0200)
commita0bc0c462ff55b4112be49d1839635ac3a4a9878
tree46b4dbaba7a1d4d71b66fcf388abeee3db38d52f
parent7e7e49be78e26d0a3b861a04bbec1635aabb71b9
gh-100926: Move ctype's pointers cache from _pointer_type_cache to StgInfo (GH-131282)

Deprecate _pointer_type_cache and calling POINTER on a string.

Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
Co-authored-by: Jun Komoda <45822440+junkmd@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
17 files changed:
Doc/library/ctypes.rst
Doc/whatsnew/3.14.rst
Lib/ctypes/__init__.py
Lib/test/test_ctypes/test_byteswap.py
Lib/test/test_ctypes/test_c_simple_type_meta.py
Lib/test/test_ctypes/test_incomplete.py
Lib/test/test_ctypes/test_keeprefs.py
Lib/test/test_ctypes/test_pointers.py
Lib/test/test_ctypes/test_structures.py
Lib/test/test_ctypes/test_values.py
Lib/test/test_ctypes/test_win32.py
Misc/NEWS.d/next/Library/2025-03-17-23-07-57.gh-issue-100926.B8gcbz.rst [new file with mode: 0644]
Modules/_ctypes/_ctypes.c
Modules/_ctypes/callproc.c
Modules/_ctypes/clinic/callproc.c.h
Modules/_ctypes/ctypes.h
Modules/_ctypes/stgdict.c