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-storchaka serhiy-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.

@scoder scoder 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 thread Modules/_ctypes/callproc.c
Comment thread Modules/_testcapimodule.c Outdated
Comment thread Modules/posixmodule.c Outdated
@methane

methane commented Jun 17, 2020

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
Member Author

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

#21223

Comment thread Include/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
Member Author

No longer actual after merging #92537.

Sign up for free to 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