René's URL Explorer Experiment


Title: gh-95504: Fix sign placement in PyUnicode_FromFormat by philg314 · Pull Request #95505 · python/cpython · GitHub

Open Graph Title: gh-95504: Fix sign placement in PyUnicode_FromFormat by philg314 · Pull Request #95505 · python/cpython

X Title: gh-95504: Fix sign placement in PyUnicode_FromFormat by philg314 · Pull Request #95505 · python/cpython

Description: gh-95504: Fix sign placement in PyUnicode_FromFormat The sign doesn't stick to the number anymore: PyUnicode_FromFormat("d", -123); results in "-0123" instead of "0-123", PyUnicode_FromFormat("%.5d", -123); results in "-00123" instead of "0-123". Issue: gh-95504

Open Graph Description: gh-95504: Fix sign placement in PyUnicode_FromFormat The sign doesn't stick to the number anymore: PyUnicode_FromFormat("d", -123); results in "-0123" instead of "0-...

X Description: gh-95504: Fix sign placement in PyUnicode_FromFormat The sign doesn't stick to the number anymore: PyUnicode_FromFormat("d", -123); results in "-0123"...

Opengraph URL: https://github.com/python/cpython/pull/95505

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c8af3e79-fb67-86ab-29d5-c8cd8b7e331d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBD02:1C4E31:14C4F81:1C7802D:69694D8E
html-safe-noncea6907ccbe542b51c8c7111b7af9ef5b1b8006aaea2c665f83f5aa6cfe93f5c05
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDAyOjFDNEUzMToxNEM0RjgxOjFDNzgwMkQ6Njk2OTREOEUiLCJ2aXNpdG9yX2lkIjoiNTM2NzAxNDk5NzY4ODQwNTM5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace9287d741e12d6d5fe9de0e20152ef6eabf191acd29a479a796de92adf37184e
hovercard-subject-tagpull_request:1013107801
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/95505/files
twitter:imagehttps://avatars.githubusercontent.com/u/110174000?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/110174000?s=400&v=4
og:image:altgh-95504: Fix sign placement in PyUnicode_FromFormat The sign doesn't stick to the number anymore: PyUnicode_FromFormat("d", -123); results in "-0123" instead of "0-...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released69ac0477df0f87da03b8b06cebd187012d7a930
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/95505/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F95505%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F95505%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/95505/files
Reloadhttps://github.com/python/cpython/pull/95505/files
Reloadhttps://github.com/python/cpython/pull/95505/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/95505/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/95505/files
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
philg314https://github.com/philg314
python:mainhttps://github.com/python/cpython/tree/main
philg314:unicode-from-format-negativehttps://github.com/philg314/cpython/tree/unicode-from-format-negative
Conversation 16 https://github.com/python/cpython/pull/95505
Commits 8 https://github.com/python/cpython/pull/95505/commits
Checks 0 https://github.com/python/cpython/pull/95505/checks
Files changed https://github.com/python/cpython/pull/95505/files
Please reload this pagehttps://github.com/python/cpython/pull/95505/files
gh-95504: Fix sign placement in PyUnicode_FromFormat https://github.com/python/cpython/pull/95505/files#top
Show all changes 8 commits https://github.com/python/cpython/pull/95505/files
2d6f3e1 Add tests for PyUnicode_FromFormat philg314 Jul 29, 2022 https://github.com/python/cpython/pull/95505/commits/2d6f3e1125a4cf2f3744fb02f9cf959624cceca1
bd72e2a Fix negative numbers in PyUnicode_FromFormat philg314 Jul 29, 2022 https://github.com/python/cpython/pull/95505/commits/bd72e2a6f012bea145bef94471f1247492796b35
95b4f83 Merge remote-tracking branch 'upstream/main' into unicode-from-format… philg314 Aug 2, 2022 https://github.com/python/cpython/pull/95505/commits/95b4f830c5b66c36f5f1830db741aee57d2452b1
99b0ebc Add whatsnew philg314 Aug 2, 2022 https://github.com/python/cpython/pull/95505/commits/99b0ebcc108df0e33f81eef418c4917714371705
63e9afd gh-93649: Split unicode tests from _testcapimodule.c philg314 Aug 2, 2022 https://github.com/python/cpython/pull/95505/commits/63e9afdab78b6d28223bb1345ac2892ead310873
d70fa1f Use built-in AssertionError philg314 Aug 6, 2022 https://github.com/python/cpython/pull/95505/commits/d70fa1f0376ad2c5150becf23ab0622a8b5c7ada
79a8138 Merge remote-tracking branch 'upstream/main' into unicode-from-format… philg314 Aug 6, 2022 https://github.com/python/cpython/pull/95505/commits/79a8138bc0e7fe226a735a8eeaca36f46786dac7
e8d0edf Implement requested changes philg314 Aug 7, 2022 https://github.com/python/cpython/pull/95505/commits/e8d0edfc16dbd365e59dc3d7013e9691b6d35390
Clear filters https://github.com/python/cpython/pull/95505/files
Please reload this pagehttps://github.com/python/cpython/pull/95505/files
Please reload this pagehttps://github.com/python/cpython/pull/95505/files
3.12.rst https://github.com/python/cpython/pull/95505/files#diff-0f2c1763c64530268325a0ee2dfaa4f5d555c4ac27deb78bd77102c8ce1b886b
ACKS https://github.com/python/cpython/pull/95505/files#diff-d1243956feb505c5459fc05387e194609efb5c350cee202942be47ed30d7d7d0
2022-07-31-21-58-27.gh-issue-95504.wy7B1F.rst https://github.com/python/cpython/pull/95505/files#diff-5e5ce163f8757f7712ae14a987c14ec90d530e6192acce7e5bd7f71c07350961
Setup.stdlib.in https://github.com/python/cpython/pull/95505/files#diff-93b54a98829ea89eaf6335c02f546511f7780d865131407436b10a401ecd375c
parts.h https://github.com/python/cpython/pull/95505/files#diff-cda7cf7eb449238a999023ecd2b9e421c402b83d4ab7a16d2bf9cce68dad32ba
unicode.c https://github.com/python/cpython/pull/95505/files#diff-77645a51ae29e375591d4743da76099199a21c5348a5f8d1d9835bd86392c6a4
_testcapimodule.c https://github.com/python/cpython/pull/95505/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f
unicodeobject.c https://github.com/python/cpython/pull/95505/files#diff-34c966e7876d6f8bf801dd51896327e4f68bba02cddb95fbf3963f0b2e39c38a
_testcapi.vcxproj https://github.com/python/cpython/pull/95505/files#diff-84a64a18e83c2b6057a2eb75ee9c6bf2695a4948b62f8bd268a0f4f46d774830
_testcapi.vcxproj.filters https://github.com/python/cpython/pull/95505/files#diff-5772d42704a7c3ceafeaabcda5f995cb70bd48acd70c9c4d2e5bf2319a706bb3
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L114
Doc/whatsnew/3.12.rsthttps://github.com/python/cpython/pull/95505/files#diff-0f2c1763c64530268325a0ee2dfaa4f5d555c4ac27deb78bd77102c8ce1b886b
View file https://github.com/philg314/cpython/blob/e8d0edfc16dbd365e59dc3d7013e9691b6d35390/Doc/whatsnew/3.12.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/95505/{{ revealButtonHref }}
https://github.com/python/cpython/pull/95505/files#diff-0f2c1763c64530268325a0ee2dfaa4f5d555c4ac27deb78bd77102c8ce1b886b
https://github.com/python/cpython/pull/95505/files#diff-0f2c1763c64530268325a0ee2dfaa4f5d555c4ac27deb78bd77102c8ce1b886b
Misc/ACKShttps://github.com/python/cpython/pull/95505/files#diff-d1243956feb505c5459fc05387e194609efb5c350cee202942be47ed30d7d7d0
View file https://github.com/philg314/cpython/blob/e8d0edfc16dbd365e59dc3d7013e9691b6d35390/Misc/ACKS
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/95505/{{ revealButtonHref }}
https://github.com/python/cpython/pull/95505/files#diff-d1243956feb505c5459fc05387e194609efb5c350cee202942be47ed30d7d7d0
Please reload this pagehttps://github.com/python/cpython/pull/95505/files
https://github.com/python/cpython/pull/95505/files#diff-d1243956feb505c5459fc05387e194609efb5c350cee202942be47ed30d7d7d0
Misc/NEWS.d/next/C API/2022-07-31-21-58-27.gh-issue-95504.wy7B1F.rsthttps://github.com/python/cpython/pull/95505/files#diff-5e5ce163f8757f7712ae14a987c14ec90d530e6192acce7e5bd7f71c07350961
View file https://github.com/philg314/cpython/blob/e8d0edfc16dbd365e59dc3d7013e9691b6d35390/Misc/NEWS.d/next/C%20API/2022-07-31-21-58-27.gh-issue-95504.wy7B1F.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/95505/{{ revealButtonHref }}
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L86
Modules/Setup.stdlib.inhttps://github.com/python/cpython/pull/95505/files#diff-93b54a98829ea89eaf6335c02f546511f7780d865131407436b10a401ecd375c
View file https://github.com/philg314/cpython/blob/e8d0edfc16dbd365e59dc3d7013e9691b6d35390/Modules/Setup.stdlib.in
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/95505/{{ revealButtonHref }}
https://github.com/python/cpython/pull/95505/files#diff-93b54a98829ea89eaf6335c02f546511f7780d865131407436b10a401ecd375c
https://github.com/python/cpython/pull/95505/files#diff-93b54a98829ea89eaf6335c02f546511f7780d865131407436b10a401ecd375c
Modules/_testcapi/parts.hhttps://github.com/python/cpython/pull/95505/files#diff-cda7cf7eb449238a999023ecd2b9e421c402b83d4ab7a16d2bf9cce68dad32ba
View file https://github.com/philg314/cpython/blob/e8d0edfc16dbd365e59dc3d7013e9691b6d35390/Modules/_testcapi/parts.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/95505/{{ revealButtonHref }}
https://github.com/python/cpython/pull/95505/files#diff-cda7cf7eb449238a999023ecd2b9e421c402b83d4ab7a16d2bf9cce68dad32ba
Please reload this pagehttps://github.com/python/cpython/pull/95505/files
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.