← 返回首页
bpo-36346: Prepare for removing the legacy Unicode C API. by serhiy-storchaka · Pull Request #12409 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

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 commented Mar 18, 2019
edited by bedevere-bot
Loading

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

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

Comment thread Modules/_ctypes/callproc.c Show resolved Hide resolved
Comment thread Modules/_testcapimodule.c Outdated Show resolved Hide resolved
Comment thread Modules/posixmodule.c Outdated Show resolved Hide resolved

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*.

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

6 hidden items Load more…
Comment thread Include/cpython/unicodeobject.h Outdated Show resolved Hide resolved

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
Member Author

No longer actual after merging #92537.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Footer

© 2026 GitHub, Inc.