René's URL Explorer Experiment


Title: Use the public PyUnicodeWriter API · Issue #125196 · python/cpython · GitHub

Open Graph Title: Use the public PyUnicodeWriter API · Issue #125196 · python/cpython

X Title: Use the public PyUnicodeWriter API · Issue #125196 · python/cpython

Description: Replace PyUnicode_New(), PyUnicode_CopyCharacters(), etc. with PyUnicodeWriter. It avoids creating incomplete Unicode strings: see Avoid creating incomplete/invalid objects. Linked PRs gh-125199 gh-125201 gh-125202 gh-125214 gh-125219 gh...

Open Graph Description: Replace PyUnicode_New(), PyUnicode_CopyCharacters(), etc. with PyUnicodeWriter. It avoids creating incomplete Unicode strings: see Avoid creating incomplete/invalid objects. Linked PRs gh-125199 gh...

X Description: Replace PyUnicode_New(), PyUnicode_CopyCharacters(), etc. with PyUnicodeWriter. It avoids creating incomplete Unicode strings: see Avoid creating incomplete/invalid objects. Linked PRs gh-125199 gh...

Opengraph URL: https://github.com/python/cpython/issues/125196

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use the public PyUnicodeWriter API","articleBody":"Replace `PyUnicode_New()`, `PyUnicode_CopyCharacters()`, etc. with `PyUnicodeWriter`. It avoids creating incomplete Unicode strings: see [Avoid creating incomplete/invalid objects](https://github.com/capi-workgroup/api-evolution/issues/36).\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-125199\n* gh-125201\n* gh-125202\n* gh-125214\n* gh-125219\n* gh-125220\n* gh-125222\n* gh-125227\n* gh-125242\n* gh-125249\n* gh-125262\n* gh-125270\n* gh-125271\n* gh-125458\n* gh-125528\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2024-10-09T15:03:53Z","url":"https://github.com/python/cpython/issues/125196"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9d15d6c8-5039-965a-a0bd-dacd1da6a286
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBBF2:BB75:1375F2C:19C80A2:6B01F403
html-safe-nonce1162ae162a93c2153b0400fc76ef4b5fd89cba57a67ac0b888ab2df6f6446398
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkYyOkJCNzU6MTM3NUYyQzoxOUM4MEEyOjZCMDFGNDAzIiwidmlzaXRvcl9pZCI6IjQ1MzY1ODMyOTAwNzY5MTg3ODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6db016d67eff41efa9d626a447ebcb6917c7623a6e4d02b6dc6b484218f355e0
hovercard-subject-tagissue:2576206792
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/125196/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8e40a2ccd7aac268958d39610c62b615887accb3d82b5fe3a288ffa4ffb1f0b1/python/cpython/issues/125196
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8e40a2ccd7aac268958d39610c62b615887accb3d82b5fe3a288ffa4ffb1f0b1/python/cpython/issues/125196
og:image:altReplace PyUnicode_New(), PyUnicode_CopyCharacters(), etc. with PyUnicodeWriter. It avoids creating incomplete Unicode strings: see Avoid creating incomplete/invalid objects. Linked PRs gh-125199 gh...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevstinner
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/125196#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F125196
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F125196
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/125196
Reloadhttps://github.com/python/cpython/issues/125196
Reloadhttps://github.com/python/cpython/issues/125196
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/125196
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/125196
Use the public PyUnicodeWriter APIhttps://github.com/python/cpython/issues/125196#top
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
topic-unicodehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-unicode%22
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Oct 9, 2024https://github.com/python/cpython/issues/125196#issue-2576206792
Avoid creating incomplete/invalid objectshttps://github.com/capi-workgroup/api-evolution/issues/36
gh-125196: Use PyUnicodeWriter in symtable.c #125199https://github.com/python/cpython/pull/125199
gh-125196: Add PyUnicodeWriter_Fill() function #125201https://github.com/python/cpython/pull/125201
gh-125196: Use PyUnicodeWriter for repr(list) #125202https://github.com/python/cpython/pull/125202
gh-125196: Add fast-path for int in PyUnicodeWriter_WriteStr() #125214https://github.com/python/cpython/pull/125214
gh-125196: Use PyUnicodeWriter for repr(structseq) #125219https://github.com/python/cpython/pull/125219
gh-125196: Use PyUnicodeWriter for repr(contextvars.Token) #125220https://github.com/python/cpython/pull/125220
gh-125196: PyUnicodeWriter_Discard(NULL) does nothing #125222https://github.com/python/cpython/pull/125222
gh-125196: Add a free list to PyUnicodeWriter #125227https://github.com/python/cpython/pull/125227
gh-125196: Use PyUnicodeWriter for repr(tuple) #125242https://github.com/python/cpython/pull/125242
gh-125196: Use PyUnicodeWriter for JSON encoder #125249https://github.com/python/cpython/pull/125249
gh-125196: Use PyUnicodeWriter in error handlers #125262https://github.com/python/cpython/pull/125262
gh-125196: Use PyUnicodeWriter for repr(dict) #125270https://github.com/python/cpython/pull/125270
gh-125196: Use PyUnicodeWriter in parser #125271https://github.com/python/cpython/pull/125271
gh-125196: Use PyUnicodeWriter in HAMT #125458https://github.com/python/cpython/pull/125458
gh-125196: Use PyUnicodeWriter in _io.StringIO #125528https://github.com/python/cpython/pull/125528
Nexthttps://github.com/python/cpython/issues/125196?timeline_page=1
vstinnerhttps://github.com/vstinner
on Oct 9, 2024https://github.com/python/cpython/issues/125196#event-14574715289
pythongh-125196: Use PyUnicodeWriter in symtable.chttps://github.com/vstinner/cpython/commit/26a81a75fe7bc643385e1e0a082fe9ce4eeec40e
pythongh-125196https://github.com/python/cpython/issues/125196
26a81a7https://github.com/vstinner/cpython/commit/26a81a75fe7bc643385e1e0a082fe9ce4eeec40e
pythongh-125196: Use PyUnicodeWriter in symtable.chttps://github.com/vstinner/cpython/commit/7333a99b390a4b4565ac22d5ee18b02d33b819bf
pythongh-125196https://github.com/python/cpython/issues/125196
7333a99https://github.com/vstinner/cpython/commit/7333a99b390a4b4565ac22d5ee18b02d33b819bf
pythongh-125196: Add PyUnicodeWriter_Fill() functionhttps://github.com/vstinner/cpython/commit/1feb88f59f039507f74b81c8b48467005bea9fb9
pythongh-125196https://github.com/python/cpython/issues/125196
1feb88fhttps://github.com/vstinner/cpython/commit/1feb88f59f039507f74b81c8b48467005bea9fb9
gh-125196: Use PyUnicodeWriter in symtable.c (#125199)https://github.com/python/cpython/commit/9bda7750c2af779d3431f5ea120db91c6c83ec49
gh-125196https://github.com/python/cpython/issues/125196
#125199https://github.com/python/cpython/pull/125199
9bda775https://github.com/python/cpython/commit/9bda7750c2af779d3431f5ea120db91c6c83ec49
pythongh-125196: Add PyUnicodeWriter_Fill() functionhttps://github.com/vstinner/cpython/commit/cbc84c3b1f0b7d13ac7b683bbb025fa09bc1b844
pythongh-125196https://github.com/python/cpython/issues/125196
cbc84c3https://github.com/vstinner/cpython/commit/cbc84c3b1f0b7d13ac7b683bbb025fa09bc1b844
pythongh-125196: Add PyUnicodeWriter_Fill() functionhttps://github.com/vstinner/cpython/commit/a78c3c27dc84c843de31f42f365d060b5e71c37e
pythongh-125196https://github.com/python/cpython/issues/125196
a78c3c2https://github.com/vstinner/cpython/commit/a78c3c27dc84c843de31f42f365d060b5e71c37e
pythongh-125196: Add PyUnicodeWriter_Fill() functionhttps://github.com/vstinner/cpython/commit/a2ca774de3cb9abf798a96cd818bcd920120030e
pythongh-125196https://github.com/python/cpython/issues/125196
a2ca774https://github.com/vstinner/cpython/commit/a2ca774de3cb9abf798a96cd818bcd920120030e
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Oct 9, 2024https://github.com/python/cpython/issues/125196#issuecomment-2402729435
b9a8ca0https://github.com/python/cpython/commit/b9a8ca0a6aa9251cb798f34f0c9d2cc95107eec6
vstinnerhttps://github.com/vstinner
on Oct 9, 2024https://github.com/python/cpython/issues/125196#event-14575864471
pythongh-125196: Use PyUnicodeWriter for repr(list)https://github.com/vstinner/cpython/commit/8c33f9156279bb3c78f559a071c2330a9412945f
pythongh-125196https://github.com/python/cpython/issues/125196
8c33f91https://github.com/vstinner/cpython/commit/8c33f9156279bb3c78f559a071c2330a9412945f
pythongh-125196: Add fast-path for int in PyUnicodeWriter_WriteStr()https://github.com/vstinner/cpython/commit/3400d0ad4c185dea84bff4aa8ba33b1599df0596
pythongh-125196https://github.com/python/cpython/issues/125196
3400d0ahttps://github.com/vstinner/cpython/commit/3400d0ad4c185dea84bff4aa8ba33b1599df0596
pythongh-125196: Use PyUnicodeWriter for repr(structseq)https://github.com/vstinner/cpython/commit/220667c6edf431d031afa01ec235b36f747bfff8
pythongh-125196https://github.com/python/cpython/issues/125196
220667chttps://github.com/vstinner/cpython/commit/220667c6edf431d031afa01ec235b36f747bfff8
pythongh-125196: Use PyUnicodeWriter for repr(contextvars.Token)https://github.com/vstinner/cpython/commit/5b7be71c4ee64f55e18f6ae2b444c76800f3574f
pythongh-125196https://github.com/python/cpython/issues/125196
5b7be71https://github.com/vstinner/cpython/commit/5b7be71c4ee64f55e18f6ae2b444c76800f3574f
gh-125196: Use PyUnicodeWriter for repr(list) (#125202)https://github.com/python/cpython/commit/52f70da19cf3c7198be37faeac233ef803080f6f
gh-125196https://github.com/python/cpython/issues/125196
#125202https://github.com/python/cpython/pull/125202
52f70dahttps://github.com/python/cpython/commit/52f70da19cf3c7198be37faeac233ef803080f6f
pythongh-125196: PyUnicodeWriter_Discard(NULL) does nothinghttps://github.com/vstinner/cpython/commit/5e51ebf7e309b14dfcbf4fa249c79365840f22e3
pythongh-125196https://github.com/python/cpython/issues/125196
5e51ebfhttps://github.com/vstinner/cpython/commit/5e51ebf7e309b14dfcbf4fa249c79365840f22e3
gh-125196: Add fast-path for int in PyUnicodeWriter_WriteStr() (#125214)https://github.com/python/cpython/commit/ee3167b9787bf9424d5637a224233de775450231
gh-125196https://github.com/python/cpython/issues/125196
#125214https://github.com/python/cpython/pull/125214
ee3167bhttps://github.com/python/cpython/commit/ee3167b9787bf9424d5637a224233de775450231
vstinnerhttps://github.com/vstinner
on Oct 10, 2024https://github.com/python/cpython/issues/125196#event-14593253499
pythongh-125196: Use PyUnicodeWriter for repr(dict)https://github.com/vstinner/cpython/commit/9f4379a12cec416153f6b8826f8ab9fe3b1b0ad6
pythongh-125196https://github.com/python/cpython/issues/125196
9f4379ahttps://github.com/vstinner/cpython/commit/9f4379a12cec416153f6b8826f8ab9fe3b1b0ad6
pythongh-125196: Use PyUnicodeWriter for repr(dict)https://github.com/vstinner/cpython/commit/36b8dbdf3f63f8cd7e50c12b9183a16248898fb3
pythongh-125196https://github.com/python/cpython/issues/125196
36b8dbdhttps://github.com/vstinner/cpython/commit/36b8dbdf3f63f8cd7e50c12b9183a16248898fb3
pythongh-125196: Use PyUnicodeWriter in parserhttps://github.com/vstinner/cpython/commit/c335dc05fa66224e212bce5c1915f865c5d3aef4
pythongh-125196https://github.com/python/cpython/issues/125196
c335dc0https://github.com/vstinner/cpython/commit/c335dc05fa66224e212bce5c1915f865c5d3aef4
vstinnerhttps://github.com/vstinner
on Oct 10, 2024https://github.com/python/cpython/issues/125196#event-14593631477
vstinnerhttps://github.com/vstinner
on Oct 10, 2024https://github.com/python/cpython/issues/125196#event-14595793122
gh-125196: Use PyUnicodeWriter for repr(dict) (#125270)https://github.com/python/cpython/commit/bb594e801b6a84823badbb85b88f0fc8b221d7bf
gh-125196https://github.com/python/cpython/issues/125196
#125270https://github.com/python/cpython/pull/125270
bb594e8https://github.com/python/cpython/commit/bb594e801b6a84823badbb85b88f0fc8b221d7bf
JacobCoffeehttps://github.com/JacobCoffee
topic-unicodehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-unicode%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
on Oct 10, 2024https://github.com/python/cpython/issues/125196#event-14597260360
vstinnerhttps://github.com/vstinner
on Oct 12, 2024https://github.com/python/cpython/issues/125196#event-14616169105
gh-125196: Use PyUnicodeWriter in parser (#125271)https://github.com/python/cpython/commit/4a943c3251d1b3fdf50cfb9264ae74e5bc845c3c
gh-125196https://github.com/python/cpython/issues/125196
#125271https://github.com/python/cpython/pull/125271
4a943c3https://github.com/python/cpython/commit/4a943c3251d1b3fdf50cfb9264ae74e5bc845c3c
pythongh-125196: Use PyUnicodeWriter in HAMThttps://github.com/vstinner/cpython/commit/df1de4eafbd27eed06b4e5c2e5483db76e2f7dc1
pythongh-125196https://github.com/python/cpython/issues/125196
df1de4ehttps://github.com/vstinner/cpython/commit/df1de4eafbd27eed06b4e5c2e5483db76e2f7dc1
pythongh-125196: Use PyUnicodeWriter in HAMThttps://github.com/vstinner/cpython/commit/8da0ca38804bccfd5f1c6b679931dae2136d6449
pythongh-125196https://github.com/python/cpython/issues/125196
8da0ca3https://github.com/vstinner/cpython/commit/8da0ca38804bccfd5f1c6b679931dae2136d6449
pythongh-125196: Use PyUnicodeWriter in HAMThttps://github.com/vstinner/cpython/commit/974e343fe839914146544ef7ed118c4fca677509
pythongh-125196https://github.com/python/cpython/issues/125196
974e343https://github.com/vstinner/cpython/commit/974e343fe839914146544ef7ed118c4fca677509
gh-125196: Use PyUnicodeWriter in HAMT (#125458)https://github.com/python/cpython/commit/aa18fd55d575a04e3aa782fedcd08dced26676e0
gh-125196https://github.com/python/cpython/issues/125196
#125458https://github.com/python/cpython/pull/125458
aa18fd5https://github.com/python/cpython/commit/aa18fd55d575a04e3aa782fedcd08dced26676e0
pythongh-125196: Use PyUnicodeWriter in _io.StringIOhttps://github.com/vstinner/cpython/commit/5e96bfb4b75e3aa28d84852d4a57a10cefc38e5b
pythongh-125196https://github.com/python/cpython/issues/125196
5e96bfbhttps://github.com/vstinner/cpython/commit/5e96bfb4b75e3aa28d84852d4a57a10cefc38e5b
vstinnerhttps://github.com/vstinner
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 25, 2024https://github.com/python/cpython/issues/125196#event-14868319130
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/125196
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/125196
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
topic-unicodehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-unicode%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.