| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:7f38f08f-2562-31f6-a10a-a5803cd012e8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DD64:27E5CD:429F102:550DBAF:6B0222D0 |
| html-safe-nonce | da4f6fab77f0b7c4b82d9d852b275e533903a77a88bc6dec251d4bc55cbe0d9f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDY0OjI3RTVDRDo0MjlGMTAyOjU1MERCQUY6NkIwMjIyRDAiLCJ2aXNpdG9yX2lkIjoiNDQyNjUxNTA2MzY3MDcxMDk5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b2ea8894380e988936608711a18dead3f807b354248dc612107a8d71360cd4eb |
| hovercard-subject-tag | pull_request:4560176335 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/157685/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/0f11382e8d53cc4781f9ff8f5144f1b9137ddd295b2f694cddf457407128bd8d/python/cpython/pull/157685 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0f11382e8d53cc4781f9ff8f5144f1b9137ddd295b2f694cddf457407128bd8d/python/cpython/pull/157685 |
| og:image:alt | Similar to %R, but don't call __repr__() on str subclasses.
Issue: Format attribute name with repr() when formatting AttributeError error message #154610 |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-cache |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/python/cpython/pull/157685#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F157685 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F157685 |
| 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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/157685 |
| Reload | https://github.com/python/cpython/pull/157685 |
| Reload | https://github.com/python/cpython/pull/157685 |
| python | https://github.com/python |
| cpython | https://github.com/python/cpython |
| Code | https://github.com/python/cpython |
| Issues5k+ (5k+) | https://github.com/python/cpython/issues |
| Pull requests2.4k (2.4k) | https://github.com/python/cpython/pulls |
| Actions | https://github.com/python/cpython/actions |
| Projects | https://github.com/python/cpython/projects |
| Security and quality | https://github.com/python/cpython/security |
| Insights | https://github.com/python/cpython/insights |
| https://github.com/python/cpython |
| vstinner | https://github.com/vstinner |
| python:main | https://github.com/python/cpython/tree/main |
| vstinner:format_alt_repr | https://github.com/vstinner/cpython/tree/format_alt_repr |
| Conversation | https://github.com/python/cpython/pull/157685 |
| Commits6 (6) | https://github.com/python/cpython/pull/157685/commits |
| Checks | https://github.com/python/cpython/pull/157685/checks |
| Files changed | https://github.com/python/cpython/pull/157685/files |
| gh-154610: Add !R to f-string and %#R to PyUnicode_FromFormat() | https://github.com/python/cpython/pull/157685#top |
| vstinner | https://github.com/vstinner |
| python:main | https://github.com/python/cpython/tree/main |
| vstinner:format_alt_repr | https://github.com/vstinner/cpython/tree/format_alt_repr |
|
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Sep 17, 2026 | https://github.com/python/cpython/pull/157685#issue-5489414902 |
| Please reload this page | https://github.com/python/cpython/pull/157685 |
| Format attribute name with repr() when formatting AttributeError error message #154610 | https://github.com/python/cpython/issues/154610 |
| Please reload this page | https://github.com/python/cpython/pull/157685 |
|
| https://github.com/vstinner |
| pythongh-154610 | https://github.com/python/cpython/issues/154610 |
| : Add %#R format to PyUnicode_FromFormat() | https://github.com/python/cpython/pull/157685/commits/ac88b3689ad194bb682015b9860e97ca692bfd3a |
| ac88b36 | https://github.com/python/cpython/pull/157685/commits/ac88b3689ad194bb682015b9860e97ca692bfd3a |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| AA-Turner | https://github.com/AA-Turner |
| ZeroIntensity | https://github.com/ZeroIntensity |
| code owners | https://github.com/python/cpython/blob/8759666e4c00d7b7bcf47bf44dd470b04ab5f708/.github/CODEOWNERS#L116 |
| September 17, 2026 15:25 | https://github.com/python/cpython/pull/157685#event-31331001576 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
|
topic-C-API
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-C-API |
| Sep 17, 2026 | https://github.com/python/cpython/pull/157685#event-31331002301 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
Sep 17, 2026
| https://github.com/python/cpython/pull/157685#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-app | https://github.com/apps/bedevere-app |
|
tests
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atests |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Sep 17, 2026 | https://github.com/python/cpython/pull/157685#event-31331007979 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Sep 17, 2026 | https://github.com/python/cpython/pull/157685#issuecomment-5716947486 |
| gh-154614 | https://github.com/python/cpython/pull/154614 |
| Please reload this page | https://github.com/python/cpython/pull/157685 |
| https://github.com/apps/read-the-docs-community |
| read-the-docs-community | https://github.com/apps/read-the-docs-community |
| Sep 17, 2026 | https://github.com/python/cpython/pull/157685#issuecomment-5716986757 |
| Please reload this page | https://github.com/python/cpython/pull/157685 |
| cpython-previews | https://app.readthedocs.org/projects/cpython-previews/ |
| #34618427 | https://app.readthedocs.org/projects/cpython-previews/builds/34618427/ |
| 6507b80 | https://github.com/python/cpython/commit/6507b80f797be358ad7c83b99c5f767052fb0acf |
| main | https://cpython-previews.readthedocs.io/en/main/ |
| 8759666 | https://github.com/python/cpython/commit/8759666e4c00d7b7bcf47bf44dd470b04ab5f708 |
| 🔍 Preview build | https://cpython-previews--157685.org.readthedocs.build/en/157685/ |
| c-api/unicode.html | https://cpython-previews--157685.org.readthedocs.build/en/157685/c-api/unicode.html |
| whatsnew/3.16.html | https://cpython-previews--157685.org.readthedocs.build/en/157685/whatsnew/3.16.html |
| whatsnew/changelog.html | https://cpython-previews--157685.org.readthedocs.build/en/157685/whatsnew/changelog.html |
| Please reload this page | https://github.com/python/cpython/pull/157685 |
|
| https://github.com/vstinner |
| Fix test: override __repr__() | https://github.com/python/cpython/pull/157685/commits/1ea37c92a080f2468972491cac75dcd09655f29d |
| 1ea37c9 | https://github.com/python/cpython/pull/157685/commits/1ea37c92a080f2468972491cac75dcd09655f29d |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| September 17, 2026 15:50 | https://github.com/python/cpython/pull/157685#event-31332597307 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Sep 17, 2026 | https://github.com/python/cpython/pull/157685#event-31332600481 |
| vstinner | https://github.com/vstinner |
| September 17, 2026 17:57 | https://github.com/python/cpython/pull/157685#commits-pushed-12fad0c |
|
| https://github.com/vstinner |
| Ooops, add implementation :-D | https://github.com/python/cpython/pull/157685/commits/12fad0c3170a565954e1fb7b7e72d949ea203da5 |
| 12fad0c | https://github.com/python/cpython/pull/157685/commits/12fad0c3170a565954e1fb7b7e72d949ea203da5 |
|
| https://github.com/vstinner |
| Add !R conversion to f-strings and str.format() | https://github.com/python/cpython/pull/157685/commits/67fdc0f2c0195904f33d5618be2f3d26b9e57700 |
| 67fdc0f | https://github.com/python/cpython/pull/157685/commits/67fdc0f2c0195904f33d5618be2f3d26b9e57700 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Sep 17, 2026 | https://github.com/python/cpython/pull/157685#event-31336149681 |
|
| https://github.com/vstinner |
| Update test_tstring | https://github.com/python/cpython/pull/157685/commits/5a863273688858387d702d7dc51723519263321a |
| 5a86327 | https://github.com/python/cpython/pull/157685/commits/5a863273688858387d702d7dc51723519263321a |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Sep 17, 2026 | https://github.com/python/cpython/pull/157685#issuecomment-5718183346 |
| https://discuss.python.org/t/add-r-conversion-to-f-string-and-str-format-to-format-error-messages/109098 | https://discuss.python.org/t/add-r-conversion-to-f-string-and-str-format-to-format-error-messages/109098 |
| Please reload this page | https://github.com/python/cpython/pull/157685 |
|
| https://github.com/vstinner |
| Add repr(alt=True) | https://github.com/python/cpython/pull/157685/commits/6507b80f797be358ad7c83b99c5f767052fb0acf |
| 6507b80 | https://github.com/python/cpython/pull/157685/commits/6507b80f797be358ad7c83b99c5f767052fb0acf |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Sep 17, 2026 | https://github.com/python/cpython/pull/157685#issuecomment-5718884248 |
| Please reload this page | https://github.com/python/cpython/pull/157685 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Nov 17, 2026 | https://github.com/python/cpython/pull/157685#issuecomment-6963917374 |
| https://discuss.python.org/t/add-r-conversion-to-f-string-and-str-format-to-format-error-messages/109098/12 | https://discuss.python.org/t/add-r-conversion-to-f-string-and-str-format-to-format-error-messages/109098/12 |
| #154614 | https://github.com/python/cpython/pull/154614 |
| Please reload this page | https://github.com/python/cpython/pull/157685 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Nov 17, 2026 | https://github.com/python/cpython/pull/157685#event-36466974320 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
|
Nov 17, 2026
| https://github.com/python/cpython/pull/157685#ref-pullrequest-4969103427 |
|
gh-154610: Use repr() to format the attribute name in AttributeError
#154614
| https://github.com/python/cpython/pull/154614 |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F157685 |
|
| https://github.com/AA-Turner |
|
AA-Turner
| https://github.com/AA-Turner |
|
| https://github.com/ZeroIntensity |
|
ZeroIntensity
| https://github.com/ZeroIntensity |
|
| https://github.com/lysnikolaou |
|
lysnikolaou
| https://github.com/lysnikolaou |
|
| https://github.com/pablogsal |
|
pablogsal
| https://github.com/pablogsal |
|
| https://github.com/ericsnowcurrently |
|
ericsnowcurrently
| https://github.com/ericsnowcurrently |
|
| https://github.com/markshannon |
|
markshannon
| https://github.com/markshannon |
|
| https://github.com/iritkatriel |
|
iritkatriel
| https://github.com/iritkatriel |
| Please reload this page | https://github.com/python/cpython/pull/157685 |
|
tests
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atests |
|
topic-C-API
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-C-API |
| Please reload this page | https://github.com/python/cpython/pull/157685 |
|
| https://github.com/vstinner |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |