Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Provide feedback

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

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.14] gh-133968: Add PyUnicodeWriter_WriteASCII() function (#133973)#134974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
vstinner wants to merge1 commit intopython:3.14
base:3.14
Choose a base branch
Loading
fromvstinner:write_ascii14

Conversation

vstinner
Copy link
Member

@vstinnervstinner commentedMay 31, 2025
edited by github-actionsbot
Loading

Replace most PyUnicodeWriter_WriteUTF8() calls with PyUnicodeWriter_WriteASCII().

Unrelated change to please the linter: remove an unused import in test_ctypes.

(cherry picked from commitf49a07b)


📚 Documentation preview 📚:https://cpython-previews--134974.org.readthedocs.build/

…3973)Replace most PyUnicodeWriter_WriteUTF8() calls withPyUnicodeWriter_WriteASCII().Unrelated change to please the linter: remove an unusedimport in test_ctypes.Co-authored-by: Peter Bierma <zintensitydev@gmail.com>Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>(cherry picked from commitf49a07b)
@vstinner
Copy link
MemberAuthor

@hugovk: Hi, can I have an exception to add this late feature into Python 3.14 after the feature freeze? It was decided late but it comes with thePyUnicodeWriter which was just added to Python 3.14.

This change fix also a performance regression compared to Python 3.13:Using the public PyUnicodeWriter C API made the json module slower.

@zoobawrote:

I'd check with the RM about adding it to 3.14 as well. I suspect it should be okay - there's no compatibility impact, and it'll save introducing one by having to choose a different API between 3.14/3.15.

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

@isidenticalisidenticalAwaiting requested review from isidenticalisidentical is a code owner

@JelleZijlstraJelleZijlstraAwaiting requested review from JelleZijlstraJelleZijlstra is a code owner

@Eclips4Eclips4Awaiting requested review from Eclips4Eclips4 is a code owner

@gpsheadgpsheadAwaiting requested review from gpsheadgpshead is a code owner

@picnixzpicnixzAwaiting requested review from picnixzpicnixz is a code owner

@markshannonmarkshannonAwaiting requested review from markshannonmarkshannon is a code owner

@1st11st1Awaiting requested review from 1st11st1 is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@vstinner

[8]ページ先頭

©2009-2025 Movatter.jp