René's URL Explorer Experiment


Title: gh-154610: Use repr() to format the attribute name in AttributeError by vstinner · Pull Request #154614 · python/cpython · GitHub

Open Graph Title: gh-154610: Use repr() to format the attribute name in AttributeError by vstinner · Pull Request #154614 · python/cpython

X Title: gh-154610: Use repr() to format the attribute name in AttributeError by vstinner · Pull Request #154614 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: In Python code, replace %s with f-string {name!r}. In C code, replace '%U' with %R. In C code, no longer truncate long type names: replace %.50s or %.100s with %s (PEP 737). Issue: Form...

X Description: In Python code, replace %s with f-string {name!r}. In C code, replace '%U' with %R. In C code, no longer truncate long type names: replace %.50s or %.100s with %s (PEP 737). Iss...

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

X: @github

direct link

Domain: github.com

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:23b4f2c0-11aa-aa04-76c6-fe5f64391914
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB152:9E08E:A93DE0:D3D722:6B021F06
html-safe-noncede11ff465abe9c40c87b52830d522b2439afeffd09ecddca1910bbfd4f77eda0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTUyOjlFMDhFOkE5M0RFMDpEM0Q3MjI6NkIwMjFGMDYiLCJ2aXNpdG9yX2lkIjoiMzk5OTgyOTI0ODQzMjAyMTI1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac330846dc5e549e13c398f4720d7de4ce81efe3a7df22ea6efee8c171bafeaa1f
hovercard-subject-tagpull_request:4125259394
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/154614/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/d382120ecdd5bc51339a22cce9fbf8ddf4dc04125f3ad4f8be54091c3e166291/python/cpython/pull/154614
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d382120ecdd5bc51339a22cce9fbf8ddf4dc04125f3ad4f8be54091c3e166291/python/cpython/pull/154614
og:image:altIn Python code, replace %s with f-string {name!r}. In C code, replace '%U' with %R. In C code, no longer truncate long type names: replace %.50s or %.100s with %s (PEP 737). Issue: Form...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevstinner
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
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-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/154614#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F154614
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%2Fpull%2F154614
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/154614
Reloadhttps://github.com/python/cpython/pull/154614
Reloadhttps://github.com/python/cpython/pull/154614
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
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
vstinner:attr_error_reprhttps://github.com/vstinner/cpython/tree/attr_error_repr
Conversationhttps://github.com/python/cpython/pull/154614
Commits1 (1)https://github.com/python/cpython/pull/154614/commits
Checkshttps://github.com/python/cpython/pull/154614/checks
Files changedhttps://github.com/python/cpython/pull/154614/files
gh-154610: Use repr() to format the attribute name in AttributeErrorhttps://github.com/python/cpython/pull/154614#top
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
vstinner:attr_error_reprhttps://github.com/vstinner/cpython/tree/attr_error_repr
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Jul 24, 2026https://github.com/python/cpython/pull/154614#issue-4969103427
Please reload this pagehttps://github.com/python/cpython/pull/154614
Format attribute name with repr() when formatting AttributeError error message #154610https://github.com/python/cpython/issues/154610
Please reload this pagehttps://github.com/python/cpython/pull/154614
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
AA-Turnerhttps://github.com/AA-Turner
ZeroIntensityhttps://github.com/ZeroIntensity
cjw296https://github.com/cjw296
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
ethanfurmanhttps://github.com/ethanfurman
markshannonhttps://github.com/markshannon
methanehttps://github.com/methane
code ownershttps://github.com/python/cpython/blob/409f324f1d64d427f672d4d2fad5051b914d85a9/.github/CODEOWNERS#L386
July 24, 2026 13:57https://github.com/python/cpython/pull/154614#event-28439643499
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jul 24, 2026 https://github.com/python/cpython/pull/154614#ref-issue-4969037518
Format attribute name with repr() when formatting AttributeError error message #154610 https://github.com/python/cpython/issues/154610
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Jul 24, 2026https://github.com/python/cpython/pull/154614#event-28439648738
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Jul 24, 2026 https://github.com/python/cpython/pull/154614#ref-pullrequest-4897664971
gh-153785: Generate AttributeError messages from context #153786 https://github.com/python/cpython/pull/153786
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Jul 24, 2026https://github.com/python/cpython/pull/154614#issuecomment-5070661672
@serhiy-storchakahttps://github.com/serhiy-storchaka
@johnslavikhttps://github.com/johnslavik
Please reload this pagehttps://github.com/python/cpython/pull/154614
https://github.com/johnslavik
johnslavikhttps://github.com/johnslavik
July 24, 2026 13:59https://github.com/python/cpython/pull/154614#event-28439727204
https://github.com/johnslavik
johnslavikhttps://github.com/johnslavik
Jul 24, 2026 https://github.com/python/cpython/pull/154614#pullrequestreview-4773842125
View reviewed changes https://github.com/python/cpython/pull/154614/files
johnslavikhttps://github.com/johnslavik
Please reload this pagehttps://github.com/python/cpython/pull/154614
https://github.com/python/cpython/pull/154614#pullrequestreview-4773842125
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/154614
Lib/test/test_module/__init__.pyhttps://github.com/python/cpython/pull/154614/files#diff-8650acd0d84aa122f5d0f3d5975d602dedb7fac645ed6dea24ea53e14be0021d
Please reload this pagehttps://github.com/python/cpython/pull/154614
Lib/test/test_unittest/testmock/testmock.pyhttps://github.com/python/cpython/pull/154614/files#diff-d12618c7a76d3adce8e582c45197c1c334dcf7ead6a5cdbfdc78ecd1482cded2
Please reload this pagehttps://github.com/python/cpython/pull/154614
Lib/test/test_unittest/test_case.pyhttps://github.com/python/cpython/pull/154614/files#diff-031558a5513630caa16902ead855f7148644e798aee50ac30365a5c292cc1fad
Please reload this pagehttps://github.com/python/cpython/pull/154614
Lib/test/test_builtin.pyhttps://github.com/python/cpython/pull/154614/files#diff-f23235c1f5dea0e2d79b33a58e00025ad3c440f96bb76013a1a37868e70a776b
Please reload this pagehttps://github.com/python/cpython/pull/154614
Lib/test/test_decimal.pyhttps://github.com/python/cpython/pull/154614/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8
Please reload this pagehttps://github.com/python/cpython/pull/154614
Lib/test/test_builtin.pyhttps://github.com/python/cpython/pull/154614/files#diff-f23235c1f5dea0e2d79b33a58e00025ad3c440f96bb76013a1a37868e70a776b
Please reload this pagehttps://github.com/python/cpython/pull/154614
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Jul 24, 2026https://github.com/python/cpython/pull/154614#issuecomment-5071142991
Please reload this pagehttps://github.com/python/cpython/pull/154614
https://github.com/johnslavik
johnslavikhttps://github.com/johnslavik
Jul 24, 2026 https://github.com/python/cpython/pull/154614#pullrequestreview-4774285497
View reviewed changes https://github.com/python/cpython/pull/154614/files
johnslavikhttps://github.com/johnslavik
Please reload this pagehttps://github.com/python/cpython/pull/154614
https://github.com/python/cpython/pull/154614#pullrequestreview-4774285497
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/154614
Lib/test/test_module/__init__.pyhttps://github.com/python/cpython/pull/154614/files#diff-8650acd0d84aa122f5d0f3d5975d602dedb7fac645ed6dea24ea53e14be0021d
Please reload this pagehttps://github.com/python/cpython/pull/154614
Lib/test/test_unittest/testmock/testmock.pyhttps://github.com/python/cpython/pull/154614/files#diff-d12618c7a76d3adce8e582c45197c1c334dcf7ead6a5cdbfdc78ecd1482cded2
Please reload this pagehttps://github.com/python/cpython/pull/154614
Lib/test/test_unittest/test_case.pyhttps://github.com/python/cpython/pull/154614/files#diff-031558a5513630caa16902ead855f7148644e798aee50ac30365a5c292cc1fad
Please reload this pagehttps://github.com/python/cpython/pull/154614
Lib/test/test_builtin.pyhttps://github.com/python/cpython/pull/154614/files#diff-f23235c1f5dea0e2d79b33a58e00025ad3c440f96bb76013a1a37868e70a776b
Please reload this pagehttps://github.com/python/cpython/pull/154614
Lib/test/test_decimal.pyhttps://github.com/python/cpython/pull/154614/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8
Please reload this pagehttps://github.com/python/cpython/pull/154614
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Sep 17, 2026 https://github.com/python/cpython/pull/154614#ref-pullrequest-5489414902
gh-154610: Add !R to f-string and %#R to PyUnicode_FromFormat() #157685 https://github.com/python/cpython/pull/157685
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Oct 29, 2026https://github.com/python/cpython/pull/154614#issuecomment-6484151827
Please reload this pagehttps://github.com/python/cpython/pull/154614
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
stale https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astale
Oct 29, 2026https://github.com/python/cpython/pull/154614#event-34533568431
https://github.com/vstinner
pythongh-154610https://github.com/python/cpython/issues/154610
: Use repr() to format the attribute name in Attribute…https://github.com/python/cpython/pull/154614/commits/e53aa123da7fd10bdb41c8842586d9422b2167f7
e53aa12https://github.com/python/cpython/pull/154614/commits/e53aa123da7fd10bdb41c8842586d9422b2167f7
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
force-pushedhttps://github.com/python/cpython/compare/6a269106e879e2cd95aaabea9694ea718a8c803f..e53aa123da7fd10bdb41c8842586d9422b2167f7
6a26910https://github.com/python/cpython/commit/6a269106e879e2cd95aaabea9694ea718a8c803f
e53aa12https://github.com/python/cpython/commit/e53aa123da7fd10bdb41c8842586d9422b2167f7
Compare https://github.com/python/cpython/compare/6a269106e879e2cd95aaabea9694ea718a8c803f..e53aa123da7fd10bdb41c8842586d9422b2167f7
November 17, 2026 23:25https://github.com/python/cpython/pull/154614#event-36467325976
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
type-feature https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-feature
Nov 17, 2026https://github.com/python/cpython/pull/154614#event-36467332390
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
stale https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astale
Nov 17, 2026https://github.com/python/cpython/pull/154614#event-36467375268
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 17, 2026https://github.com/python/cpython/pull/154614#issuecomment-6964051249
#157685https://github.com/python/cpython/pull/157685
https://discuss.python.org/t/add-r-conversion-to-f-string-and-str-format-to-format-error-messages/109098/12https://discuss.python.org/t/add-r-conversion-to-f-string-and-str-format-to-format-error-messages/109098/12
@johnslavikhttps://github.com/johnslavik
Please reload this pagehttps://github.com/python/cpython/pull/154614
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 17, 2026https://github.com/python/cpython/pull/154614#issuecomment-6964081601
@encukouhttps://github.com/encukou
@serhiy-storchakahttps://github.com/serhiy-storchaka
the issuehttps://github.com/python/cpython/issues/154610
Please reload this pagehttps://github.com/python/cpython/pull/154614
https://github.com/encukou
encukouhttps://github.com/encukou
Nov 18, 2026https://github.com/python/cpython/pull/154614#issuecomment-6973762820
Please reload this pagehttps://github.com/python/cpython/pull/154614
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F154614
https://github.com/johnslavik
johnslavik https://github.com/johnslavik
https://github.com/python/cpython/pull/154614/files/8e235a3b249e88a124e618f0698dfda5607f0903
https://github.com/cjw296
cjw296 https://github.com/cjw296
https://github.com/ethanfurman
ethanfurman https://github.com/ethanfurman
https://github.com/AA-Turner
AA-Turner https://github.com/AA-Turner
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
https://github.com/markshannon
markshannon https://github.com/markshannon
https://github.com/ZeroIntensity
ZeroIntensity https://github.com/ZeroIntensity
https://github.com/methane
methane https://github.com/methane
Please reload this pagehttps://github.com/python/cpython/pull/154614
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
type-feature https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-feature
Please reload this pagehttps://github.com/python/cpython/pull/154614
https://github.com/vstinner
https://github.com/encukou
https://github.com/johnslavik
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.