]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-1635741: _PyUnicode_Name_CAPI moves to internal C API (GH-22713)
authorVictor Stinner <vstinner@python.org>
Mon, 26 Oct 2020 15:43:47 +0000 (16:43 +0100)
committerGitHub <noreply@github.com>
Mon, 26 Oct 2020 15:43:47 +0000 (16:43 +0100)
commit47e1afd2a1793b5818a16c41307a4ce976331649
treee92f8f10238092c4a9b47d6ef9d3bd6c47bde70e
parentb510e101f8b5b31276bf97b921ca9247162881d2
bpo-1635741: _PyUnicode_Name_CAPI moves to internal C API (GH-22713)

The private _PyUnicode_Name_CAPI structure of the PyCapsule API
unicodedata.ucnhash_CAPI moves to the internal C API. Moreover, the
structure gets a new state member which must be passed to the
getcode() and getname() functions.

* Move Include/ucnhash.h to Include/internal/pycore_ucnhash.h
* unicodedata module is now built with Py_BUILD_CORE_MODULE.
* unicodedata: move hashAPI variable into unicodedata_module_state.
Doc/whatsnew/3.10.rst
Include/internal/pycore_ucnhash.h [moved from Include/ucnhash.h with 60% similarity]
Makefile.pre.in
Misc/NEWS.d/next/C API/2020-10-16-10-47-17.bpo-1635741.e3BcPM.rst [new file with mode: 0644]
Modules/Setup
Modules/unicodedata.c
Objects/unicodeobject.c
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
Python/codecs.c
setup.py