Skip to content

bpo-36346: Prepare for removing the legacy Unicode C API. - #12409

Closed
serhiy-storchaka wants to merge 32 commits into
python:mainfrom
serhiy-storchaka:disable-wchar-cache
Closed

bpo-36346: Prepare for removing the legacy Unicode C API.#12409
serhiy-storchaka wants to merge 32 commits into
python:mainfrom
serhiy-storchaka:disable-wchar-cache

Conversation

@serhiy-storchaka

@serhiy-storchakaserhiy-storchaka commented Mar 18, 2019

Copy link
Copy Markdown
Member

Add two compile time options: HAVE_UNICODE_WCHAR_CACHE and
USE_UNICODE_WCHAR_CACHE.

USE_UNICODE_WCHAR_CACHE makes the interpreter not using the
wchar_t cache and the legacy Unicode C API.

HAVE_UNICODE_WCHAR_CACHE removes the wchar_t cache and the
legacy Unicode C API that depends on it.

https://bugs.python.org/issue36346

Add two compile time options: HAVE_UNICODE_WCHAR_CACHE and
USE_UNICODE_WCHAR_CACHE.
USE_UNICODE_WCHAR_CACHE makes the interpreter not using the
wchar_t cache and the legacy Unicode C API.
HAVE_UNICODE_WCHAR_CACHE removes the wchar_t cache and the
legacy Unicode C API that depends on it.

@scoderscoder left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, that's a lot of code that will eventually be removed here. Nice!

Comment threadModules/_ctypes/callproc.c
Comment threadModules/_testcapimodule.c Outdated
Comment threadModules/posixmodule.c Outdated
@methane

Copy link
Copy Markdown
Member

@serhiy-storchaka Would you split this pull request?
clinic should be updated before adding DeprecationWarning in PyArg_Parse*.

@serhiy-storchaka

Copy link
Copy Markdown
MemberAuthor

@serhiy-storchaka Would you split this pull request?
clinic should be updated before adding DeprecationWarning in PyArg_Parse*.

#21223

Comment threadInclude/cpython/unicodeobject.h Outdated
@iritkatriel

Copy link
Copy Markdown
Member

https://bugs.python.org/issue36346 is closed. What is the status of this PR?

@serhiy-storchaka

Copy link
Copy Markdown
MemberAuthor

No longer actual after merging #92537.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@serhiy-storchaka@methane@iritkatriel@scoder@blesnatalman@the-knights-who-say-ni@bedevere-bot