]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43795: PEP-652: Clean up the stable ABI/limited API (GH-25482)
authorPetr Viktorin <encukou@gmail.com>
Fri, 23 Apr 2021 12:17:58 +0000 (14:17 +0200)
committerGitHub <noreply@github.com>
Fri, 23 Apr 2021 12:17:58 +0000 (14:17 +0200)
commit9d6a2d0ee7e55402656e1dec46400591b62db331
treec9d5c5cb1aca48f6fc10ea337d728293c63ac457
parente7cc64e297001cc79b9afab80f71d9e6d1267cb7
bpo-43795: PEP-652: Clean up the stable ABI/limited API (GH-25482)

- `_Py_EncodeLocaleRaw`, which is private by name, undocumented,
  and wasn't exported in `python3.dll`, is moved to a private header.
- `_Py_HashSecret_Initialized`, again private by name, undocumented,
  and not exported in `python3.dll`, is excluded with `Py_LIMITED_API`.
- `PyMarshal_*` and `PyMember_*One` functions, declared in private headers and
  not exported in `python3.dll`, are removed from `Doc/data/stable_abi.dat`.
- `PyMem_Calloc` which *was* exported in `python3dll.c`, is moved to public
  headers where it joins its other `PyMem_*` friends.

Only the last change is documented in the blurb; others are not user-visible.
(Nothing uses `Doc/data/stable_abi.dat` yet.)

https://bugs.python.org/issue43795
Doc/data/stable_abi.dat
Include/cpython/fileutils.h
Include/cpython/pymem.h
Include/fileutils.h
Include/pyhash.h
Include/pymem.h
Misc/NEWS.d/next/C API/2021-04-20-15-06-29.bpo-43795.y0IP4c.rst [new file with mode: 0644]