René's URL Explorer Experiment


Title: gh-153785: Generate `AttributeError` messages from context by johnslavik · Pull Request #153786 · python/cpython · GitHub

Open Graph Title: gh-153785: Generate `AttributeError` messages from context by johnslavik · Pull Request #153786 · python/cpython

X Title: gh-153785: Generate `AttributeError` messages from context by johnslavik · Pull Request #153786 · python/cpython

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

Open Graph Description: I think this is the best place to do this. We do the same trick in KeyError. This also fixed issue #143811 that motivated the current one. Issue: Generate AttributeError messages from their conte...

X Description: I think this is the best place to do this. We do the same trick in KeyError. This also fixed issue #143811 that motivated the current one. Issue: Generate AttributeError messages from their conte...

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

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:d403d6c7-7e1d-cf5c-45e7-0c11eafb65eb
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD24A:928E2:37C32D5:4A4E35E:6B0214B5
html-safe-nonceb74bb82a9720960b017a1fab9f9b5a0f8558646bcebc0034799c97b1a08c90c3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjRBOjkyOEUyOjM3QzMyRDU6NEE0RTM1RTo2QjAyMTRCNSIsInZpc2l0b3JfaWQiOiIxNTMwOTEyNDc3MDg3NDA1MjM3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc31e7e4df02ee3798fc04d63303f9e6d4bc246aa0b8bd5b9e84836ec02be06d9
hovercard-subject-tagpull_request:4064865828
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/153786/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/40fe3d629fa2d838a30f49edd9899e536747435435779b87d0d250c27fc7e289/python/cpython/pull/153786
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/40fe3d629fa2d838a30f49edd9899e536747435435779b87d0d250c27fc7e289/python/cpython/pull/153786
og:image:altI think this is the best place to do this. We do the same trick in KeyError. This also fixed issue #143811 that motivated the current one. Issue: Generate AttributeError messages from their conte...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejohnslavik
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/153786#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F153786
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%2F153786
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/153786
Reloadhttps://github.com/python/cpython/pull/153786
Reloadhttps://github.com/python/cpython/pull/153786
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
johnslavik:gh-153785https://github.com/johnslavik/cpython/tree/gh-153785
Conversationhttps://github.com/python/cpython/pull/153786
Commits48 (48)https://github.com/python/cpython/pull/153786/commits
Checkshttps://github.com/python/cpython/pull/153786/checks
Files changedhttps://github.com/python/cpython/pull/153786/files
gh-153785: Generate AttributeError messages from contexthttps://github.com/python/cpython/pull/153786#top
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
johnslavik:gh-153785https://github.com/johnslavik/cpython/tree/gh-153785
https://github.com/johnslavik
johnslavikhttps://github.com/johnslavik
Jul 16, 2026https://github.com/python/cpython/pull/153786#issue-4897664971
Please reload this pagehttps://github.com/python/cpython/pull/153786
#143811https://github.com/python/cpython/issues/143811
Generate AttributeError messages from their context #153785https://github.com/python/cpython/issues/153785
Please reload this pagehttps://github.com/python/cpython/pull/153786
johnslavikhttps://github.com/johnslavik
July 16, 2026 02:15https://github.com/python/cpython/pull/153786#commits-pushed-ac555bc
https://github.com/johnslavik
Implement AttributeError_str()https://github.com/python/cpython/pull/153786/commits/ac555bc90352e6da424129a8a51f43545c81731c
ac555bchttps://github.com/python/cpython/pull/153786/commits/ac555bc90352e6da424129a8a51f43545c81731c
https://github.com/johnslavik
Add testshttps://github.com/python/cpython/pull/153786/commits/4f22a162a15bc7cab7892b2dd96d8eb611128e08
4f22a16https://github.com/python/cpython/pull/153786/commits/4f22a162a15bc7cab7892b2dd96d8eb611128e08
https://github.com/johnslavik
Check name toohttps://github.com/python/cpython/pull/153786/commits/b30d6768cb96bc35f4d8e4d1983e91fec51c09b1
b30d676https://github.com/python/cpython/pull/153786/commits/b30d6768cb96bc35f4d8e4d1983e91fec51c09b1
https://github.com/johnslavik
Add docshttps://github.com/python/cpython/pull/153786/commits/28e04d3e4213189e44ba539df01aab57ccdbb1fb
28e04d3https://github.com/python/cpython/pull/153786/commits/28e04d3e4213189e44ba539df01aab57ccdbb1fb
https://github.com/johnslavik
Add news entryhttps://github.com/python/cpython/pull/153786/commits/e5c49220c73dcf84efed95ee15fded200e9c1e97
e5c4922https://github.com/python/cpython/pull/153786/commits/e5c49220c73dcf84efed95ee15fded200e9c1e97
https://github.com/johnslavik
Improve formattinghttps://github.com/python/cpython/pull/153786/commits/38545635df41c999dd9d0ef64ab33ca074a0f2ff
3854563https://github.com/python/cpython/pull/153786/commits/38545635df41c999dd9d0ef64ab33ca074a0f2ff
https://github.com/johnslavik
Simplify?https://github.com/python/cpython/pull/153786/commits/1e88331004cdbb0aa90e9e01233adaa55787880d
1e88331https://github.com/python/cpython/pull/153786/commits/1e88331004cdbb0aa90e9e01233adaa55787880d
https://github.com/johnslavik
johnslavikhttps://github.com/johnslavik
serhiy-storchakahttps://github.com/serhiy-storchaka
July 16, 2026 01:03https://github.com/python/cpython/pull/153786#event-28044674038
https://github.com/johnslavik
johnslavikhttps://github.com/johnslavik
iritkatrielhttps://github.com/iritkatriel
code ownerhttps://github.com/python/cpython/blob/b4662e8e3b60a264486130a171047c7381f993f0/.github/CODEOWNERS#L250
July 16, 2026 01:03https://github.com/python/cpython/pull/153786#event-28044674386
https://github.com/apps/python-cla-bot
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F153786
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Jul 16, 2026https://github.com/python/cpython/pull/153786#event-28044677475
https://github.com/johnslavik
johnslavikhttps://github.com/johnslavik
Jul 16, 2026https://github.com/python/cpython/pull/153786#event-28044690212
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jul 16, 2026 https://github.com/python/cpython/pull/153786#ref-issue-4897204284
Generate AttributeError messages from their context #153785 https://github.com/python/cpython/issues/153785
https://github.com/johnslavik
Cooler formatting of the news entryhttps://github.com/python/cpython/pull/153786/commits/2fd216a0255da824db4c4e91d2f8cb562bd29961
2fd216ahttps://github.com/python/cpython/pull/153786/commits/2fd216a0255da824db4c4e91d2f8cb562bd29961
https://github.com/apps/read-the-docs-community
read-the-docs-communityhttps://github.com/apps/read-the-docs-community
Jul 16, 2026https://github.com/python/cpython/pull/153786#issuecomment-4986943856
Please reload this pagehttps://github.com/python/cpython/pull/153786
cpython-previewshttps://app.readthedocs.org/projects/cpython-previews/
#33733387https://app.readthedocs.org/projects/cpython-previews/builds/33733387/
42522c0https://github.com/python/cpython/commit/42522c07d4edb95401dcd271f3b9508418e1dc4e
mainhttps://cpython-previews.readthedocs.io/en/main/
b4662e8https://github.com/python/cpython/commit/b4662e8e3b60a264486130a171047c7381f993f0
  🔍 Preview build   https://cpython-previews--153786.org.readthedocs.build/en/153786/
c-api/exceptions.htmlhttps://cpython-previews--153786.org.readthedocs.build/en/153786/c-api/exceptions.html
c-api/frame.htmlhttps://cpython-previews--153786.org.readthedocs.build/en/153786/c-api/frame.html
c-api/type.htmlhttps://cpython-previews--153786.org.readthedocs.build/en/153786/c-api/type.html
c-api/typeobj.htmlhttps://cpython-previews--153786.org.readthedocs.build/en/153786/c-api/typeobj.html
c-api/veryhigh.htmlhttps://cpython-previews--153786.org.readthedocs.build/en/153786/c-api/veryhigh.html
faq/general.htmlhttps://cpython-previews--153786.org.readthedocs.build/en/153786/faq/general.html
howto/abi3t-migration.htmlhttps://cpython-previews--153786.org.readthedocs.build/en/153786/howto/abi3t-migration.html
howto/logging-cookbook.htmlhttps://cpython-previews--153786.org.readthedocs.build/en/153786/howto/logging-cookbook.html
library/allos.htmlhttps://cpython-previews--153786.org.readthedocs.build/en/153786/library/allos.html
library/annotationlib.htmlhttps://cpython-previews--153786.org.readthedocs.build/en/153786/library/annotationlib.html
Please reload this pagehttps://github.com/python/cpython/pull/153786
johnslavikhttps://github.com/johnslavik
July 16, 2026 03:13https://github.com/python/cpython/pull/153786#commits-pushed-356f56e
https://github.com/johnslavik
Test custom messages aren't overwrittenhttps://github.com/python/cpython/pull/153786/commits/356f56eeac4fdd2dc5724541ad1e70fc0a711ee5
356f56ehttps://github.com/python/cpython/pull/153786/commits/356f56eeac4fdd2dc5724541ad1e70fc0a711ee5
https://github.com/johnslavik
Fix news problemhttps://github.com/python/cpython/pull/153786/commits/8db03948be57346ea359b79dccbdb86165f02c2c
8db0394https://github.com/python/cpython/pull/153786/commits/8db03948be57346ea359b79dccbdb86165f02c2c
https://github.com/johnslavik
Shorter test namehttps://github.com/python/cpython/pull/153786/commits/ebcc7958b59acdbb751a9c777d7b071aa7e756f1
ebcc795https://github.com/python/cpython/pull/153786/commits/ebcc7958b59acdbb751a9c777d7b071aa7e756f1
https://github.com/johnslavik
Fix inconsistent stylehttps://github.com/python/cpython/pull/153786/commits/b6fda10e9d3b1084b5f3ba6b2f5140448c6644f8
b6fda10https://github.com/python/cpython/pull/153786/commits/b6fda10e9d3b1084b5f3ba6b2f5140448c6644f8
https://github.com/johnslavik
johnslavikhttps://github.com/johnslavik
DinoVhttps://github.com/DinoV
July 16, 2026 01:23https://github.com/python/cpython/pull/153786#event-28045301471
https://github.com/johnslavik
johnslavikhttps://github.com/johnslavik
July 16, 2026 02:11https://github.com/python/cpython/pull/153786#event-28046744837
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Jul 16, 2026https://github.com/python/cpython/pull/153786#event-28046747110
https://github.com/johnslavik
Make thread-safe, presumablyhttps://github.com/python/cpython/pull/153786/commits/d624835c7f72a6fcd1a61a43bec957d2c6eff51d
d624835https://github.com/python/cpython/pull/153786/commits/d624835c7f72a6fcd1a61a43bec957d2c6eff51d
https://github.com/johnslavik
johnslavikhttps://github.com/johnslavik
July 16, 2026 02:21https://github.com/python/cpython/pull/153786#event-28047051531
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Jul 16, 2026https://github.com/python/cpython/pull/153786#event-28047052594
johnslavikhttps://github.com/johnslavik
July 16, 2026 04:23https://github.com/python/cpython/pull/153786#commits-pushed-c50a356
https://github.com/johnslavik
Rarest case goes lasthttps://github.com/python/cpython/pull/153786/commits/c50a356e4e3cff2363cb130d6eec20dd68aee6c4
c50a356https://github.com/python/cpython/pull/153786/commits/c50a356e4e3cff2363cb130d6eec20dd68aee6c4
https://github.com/johnslavik
} else {https://github.com/python/cpython/pull/153786/commits/7ad5204f0e29ca83fdc87516c693bd6c3f87e926
7ad5204https://github.com/python/cpython/pull/153786/commits/7ad5204f0e29ca83fdc87516c693bd6c3f87e926
https://github.com/johnslavik
Remove unnecessary whitespacehttps://github.com/python/cpython/pull/153786/commits/b65a7fddb074fa40274cbffae728cf1189d13436
b65a7fdhttps://github.com/python/cpython/pull/153786/commits/b65a7fddb074fa40274cbffae728cf1189d13436
https://github.com/johnslavik
Fix stylehttps://github.com/python/cpython/pull/153786/commits/e99d87553694bafe9ea623e5db3e8fcdc2e483ff
e99d875https://github.com/python/cpython/pull/153786/commits/e99d87553694bafe9ea623e5db3e8fcdc2e483ff
https://github.com/johnslavik
Avoid nesting critical sections!https://github.com/python/cpython/pull/153786/commits/8c29de3460602e9bd4260df966f4faa174d6a1b7
8c29de3https://github.com/python/cpython/pull/153786/commits/8c29de3460602e9bd4260df966f4faa174d6a1b7
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Jul 18, 2026 https://github.com/python/cpython/pull/153786#pullrequestreview-4728765088
View reviewed changes https://github.com/python/cpython/pull/153786/files/9b00321bf0664b41991d9d81b5b2e7cd38c95e43
vstinnerhttps://github.com/vstinner
https://github.com/python/cpython/pull/153786#pullrequestreview-4728765088
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/153786
Doc/library/exceptions.rsthttps://github.com/python/cpython/pull/153786/files/9b00321bf0664b41991d9d81b5b2e7cd38c95e43#diff-50afabcd8003fedfc4e1ff12e126e8a6b531f67b218e565dcb1303944e1c2b5b
Please reload this pagehttps://github.com/python/cpython/pull/153786
Objects/exceptions.chttps://github.com/python/cpython/pull/153786/files/9b00321bf0664b41991d9d81b5b2e7cd38c95e43#diff-96c4ad902cdfac48712fef8fff0d0c78a71eb135fb48264f3ebb67db1013fc94
Please reload this pagehttps://github.com/python/cpython/pull/153786
Objects/exceptions.chttps://github.com/python/cpython/pull/153786/files/9b00321bf0664b41991d9d81b5b2e7cd38c95e43#diff-96c4ad902cdfac48712fef8fff0d0c78a71eb135fb48264f3ebb67db1013fc94
Please reload this pagehttps://github.com/python/cpython/pull/153786
Objects/exceptions.chttps://github.com/python/cpython/pull/153786/files/9b00321bf0664b41991d9d81b5b2e7cd38c95e43#diff-96c4ad902cdfac48712fef8fff0d0c78a71eb135fb48264f3ebb67db1013fc94
Please reload this pagehttps://github.com/python/cpython/pull/153786
Lib/test/test_exceptions.pyhttps://github.com/python/cpython/pull/153786/files/9b00321bf0664b41991d9d81b5b2e7cd38c95e43#diff-3dbd58a46964dc5908595a1caa552fa3f5e2e46610679634ffc1064fd7cc3c8f
Please reload this pagehttps://github.com/python/cpython/pull/153786
Misc/NEWS.d/next/Core_and_Builtins/2026-07-16-02-50-01.gh-issue-153785.fJqPKC.rsthttps://github.com/python/cpython/pull/153786/files/9b00321bf0664b41991d9d81b5b2e7cd38c95e43#diff-d12f825d639ec7c11431f8233d9dd4152df651c2d6b204c022bd1188b58ed037
Please reload this pagehttps://github.com/python/cpython/pull/153786
https://github.com/jaraco
jaracohttps://github.com/jaraco
Jul 18, 2026https://github.com/python/cpython/pull/153786#issuecomment-5011972024
#143811https://github.com/python/cpython/issues/143811
Please reload this pagehttps://github.com/python/cpython/pull/153786
https://github.com/jaraco
jaracohttps://github.com/jaraco
Jul 18, 2026https://github.com/python/cpython/pull/153786#issuecomment-5011986610
#143811https://github.com/python/cpython/issues/143811
Please reload this pagehttps://github.com/python/cpython/pull/153786
https://github.com/jaraco
jaracohttps://github.com/jaraco
Jul 18, 2026https://github.com/python/cpython/pull/153786#issuecomment-5012007589
KeyError_strhttps://github.com/python/cpython/blob/a2d3787105d1f1a5efd0bcf5ccc6b17f5a17d8e8/Objects/exceptions.c#L3014-L3031
Please reload this pagehttps://github.com/python/cpython/pull/153786
https://github.com/jaraco
jaracohttps://github.com/jaraco
Jul 18, 2026https://github.com/python/cpython/pull/153786#issuecomment-5012021771
Please reload this pagehttps://github.com/python/cpython/pull/153786
Please reload this pagehttps://github.com/python/cpython/pull/153786
johnslavikhttps://github.com/johnslavik
July 19, 2026 17:25https://github.com/python/cpython/pull/153786#commits-pushed-df7682c
https://github.com/johnslavik
Add missing headerhttps://github.com/python/cpython/pull/153786/commits/df7682cd6d7c3e43d2b9b7353460e7ecd2c0405d
df7682chttps://github.com/python/cpython/pull/153786/commits/df7682cd6d7c3e43d2b9b7353460e7ecd2c0405d
https://github.com/johnslavik
Add state assertionshttps://github.com/python/cpython/pull/153786/commits/a419eb2ed70f7f7a0dfa36fb097ce1b4d0a51062
a419eb2https://github.com/python/cpython/pull/153786/commits/a419eb2ed70f7f7a0dfa36fb097ce1b4d0a51062
https://github.com/johnslavik
Special-case class objectshttps://github.com/python/cpython/pull/153786/commits/a7e7f0adef7ae86ad4026568761db095fe8323e8
a7e7f0ahttps://github.com/python/cpython/pull/153786/commits/a7e7f0adef7ae86ad4026568761db095fe8323e8
https://github.com/johnslavik
johnslavikhttps://github.com/johnslavik
Jul 19, 2026 https://github.com/python/cpython/pull/153786#ref-issue-4924267758
Specialize AttributeError exceptions from lazy import objects #154196 https://github.com/python/cpython/issues/154196
https://github.com/johnslavik
johnslavikhttps://github.com/johnslavik
Jul 19, 2026https://github.com/python/cpython/pull/153786#issuecomment-5017266488
@vstinnerhttps://github.com/vstinner
#154196https://github.com/python/cpython/issues/154196
Please reload this pagehttps://github.com/python/cpython/pull/153786
johnslavikhttps://github.com/johnslavik
July 19, 2026 22:43https://github.com/python/cpython/pull/153786#commits-pushed-08f8818
https://github.com/johnslavik
Look into module dict for its namehttps://github.com/python/cpython/pull/153786/commits/08f8818db4eeb6dd150e4c4faf78c1d4353ddc76
08f8818https://github.com/python/cpython/pull/153786/commits/08f8818db4eeb6dd150e4c4faf78c1d4353ddc76
https://github.com/johnslavik
https://github.com/vstinner
Rephrase the news entry per Victor suggestionhttps://github.com/python/cpython/pull/153786/commits/b9b8d7d881d13e3f8d3b3069afb8fa113ce273df
b9b8d7dhttps://github.com/python/cpython/pull/153786/commits/b9b8d7d881d13e3f8d3b3069afb8fa113ce273df
https://github.com/johnslavik
Add an explanatory comment and make function prelude nicerhttps://github.com/python/cpython/pull/153786/commits/cb5ae9670f346b0eb8c429924ece83900ebc31f0
cb5ae96https://github.com/python/cpython/pull/153786/commits/cb5ae9670f346b0eb8c429924ece83900ebc31f0
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Jul 20, 2026 https://github.com/python/cpython/pull/153786#pullrequestreview-4735019541
View reviewed changes https://github.com/python/cpython/pull/153786/files/cb5ae9670f346b0eb8c429924ece83900ebc31f0
Doc/library/exceptions.rsthttps://github.com/python/cpython/pull/153786/files/9b00321bf0664b41991d9d81b5b2e7cd38c95e43#diff-50afabcd8003fedfc4e1ff12e126e8a6b531f67b218e565dcb1303944e1c2b5b
serhiy-storchakahttps://github.com/serhiy-storchaka
Jul 20, 2026https://github.com/python/cpython/pull/153786#discussion_r3614357978
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/153786
Objects/exceptions.chttps://github.com/python/cpython/pull/153786/files/cb5ae9670f346b0eb8c429924ece83900ebc31f0#diff-96c4ad902cdfac48712fef8fff0d0c78a71eb135fb48264f3ebb67db1013fc94
Please reload this pagehttps://github.com/python/cpython/pull/153786
Objects/exceptions.chttps://github.com/python/cpython/pull/153786/files/cb5ae9670f346b0eb8c429924ece83900ebc31f0#diff-96c4ad902cdfac48712fef8fff0d0c78a71eb135fb48264f3ebb67db1013fc94
Please reload this pagehttps://github.com/python/cpython/pull/153786
https://github.com/johnslavik
Handle non-unicode __name__, drop unnecessary casthttps://github.com/python/cpython/pull/153786/commits/404359d0d172b2ac009a9b98a752a231bd98787f
404359dhttps://github.com/python/cpython/pull/153786/commits/404359d0d172b2ac009a9b98a752a231bd98787f
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Jul 20, 2026 https://github.com/python/cpython/pull/153786#pullrequestreview-4735230067
View reviewed changes https://github.com/python/cpython/pull/153786/files/404359d0d172b2ac009a9b98a752a231bd98787f
serhiy-storchakahttps://github.com/serhiy-storchaka
https://github.com/python/cpython/pull/153786#pullrequestreview-4735230067
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/153786
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Jul 23, 2026 https://github.com/python/cpython/pull/153786#pullrequestreview-4765659545
View reviewed changes https://github.com/python/cpython/pull/153786/files/404359d0d172b2ac009a9b98a752a231bd98787f
Objects/exceptions.chttps://github.com/python/cpython/pull/153786/files/404359d0d172b2ac009a9b98a752a231bd98787f#diff-96c4ad902cdfac48712fef8fff0d0c78a71eb135fb48264f3ebb67db1013fc94
Please reload this pagehttps://github.com/python/cpython/pull/153786
Objects/exceptions.chttps://github.com/python/cpython/pull/153786/files/404359d0d172b2ac009a9b98a752a231bd98787f#diff-96c4ad902cdfac48712fef8fff0d0c78a71eb135fb48264f3ebb67db1013fc94
Please reload this pagehttps://github.com/python/cpython/pull/153786
Objects/exceptions.chttps://github.com/python/cpython/pull/153786/files/404359d0d172b2ac009a9b98a752a231bd98787f#diff-96c4ad902cdfac48712fef8fff0d0c78a71eb135fb48264f3ebb67db1013fc94
vstinnerhttps://github.com/vstinner
Jul 23, 2026https://github.com/python/cpython/pull/153786#discussion_r3639448620
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/153786
johnslavikhttps://github.com/johnslavik
Jul 23, 2026https://github.com/python/cpython/pull/153786#discussion_r3641322749
Please reload this pagehttps://github.com/python/cpython/pull/153786
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/153786
vstinnerhttps://github.com/vstinner
Jul 23, 2026https://github.com/python/cpython/pull/153786#discussion_r3641412695
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/153786
vstinnerhttps://github.com/vstinner
Jul 23, 2026https://github.com/python/cpython/pull/153786#discussion_r3641421040
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/153786
johnslavikhttps://github.com/johnslavik
Jul 23, 2026https://github.com/python/cpython/pull/153786#discussion_r3641616707
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/153786
serhiy-storchakahttps://github.com/serhiy-storchaka
Jul 24, 2026https://github.com/python/cpython/pull/153786#discussion_r3643087359
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/153786
vstinnerhttps://github.com/vstinner
Jul 24, 2026https://github.com/python/cpython/pull/153786#discussion_r3644910064
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/153786
vstinnerhttps://github.com/vstinner
Jul 24, 2026https://github.com/python/cpython/pull/153786#discussion_r3645833749
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#154610https://github.com/python/cpython/issues/154610
#154614https://github.com/python/cpython/pull/154614
Please reload this pagehttps://github.com/python/cpython/pull/153786
johnslavikhttps://github.com/johnslavik
July 23, 2026 23:06https://github.com/python/cpython/pull/153786#commits-pushed-f28f1d5
https://github.com/johnslavik
Clearer goto name + extra asserthttps://github.com/python/cpython/pull/153786/commits/f28f1d57497eb6bb19481df09299bbc9ac7ed6d6
f28f1d5https://github.com/python/cpython/pull/153786/commits/f28f1d57497eb6bb19481df09299bbc9ac7ed6d6
https://github.com/johnslavik
Use %R for quoting stringshttps://github.com/python/cpython/pull/153786/commits/42522c07d4edb95401dcd271f3b9508418e1dc4e
42522c0https://github.com/python/cpython/pull/153786/commits/42522c07d4edb95401dcd271f3b9508418e1dc4e
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Jul 24, 2026 https://github.com/python/cpython/pull/153786#pullrequestreview-4772663492
View reviewed changes https://github.com/python/cpython/pull/153786/files/42522c07d4edb95401dcd271f3b9508418e1dc4e
vstinnerhttps://github.com/vstinner
https://github.com/python/cpython/pull/153786#pullrequestreview-4772663492
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@serhiy-storchakahttps://github.com/serhiy-storchaka
Please reload this pagehttps://github.com/python/cpython/pull/153786
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Jul 24, 2026https://github.com/python/cpython/pull/153786#issuecomment-5069271442
Please reload this pagehttps://github.com/python/cpython/pull/153786
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Jul 24, 2026https://github.com/python/cpython/pull/153786#issuecomment-5069703551
Please reload this pagehttps://github.com/python/cpython/pull/153786
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Jul 24, 2026https://github.com/python/cpython/pull/153786#issuecomment-5069726508
Please reload this pagehttps://github.com/python/cpython/pull/153786
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
ae72d0chttps://github.com/python/cpython/commit/ae72d0c92bf57448e256cdf8cfac7d4fd345b1a4
Jul 24, 2026https://github.com/python/cpython/pull/153786#event-28435146744
Please reload this pagehttps://github.com/python/cpython/pull/153786
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
Sprinthttps://github.com/orgs/python/projects/32
Jul 24, 2026https://github.com/python/cpython/pull/153786#event-28435150684
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Jul 24, 2026https://github.com/python/cpython/pull/153786#event-28435148605
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Jul 24, 2026https://github.com/python/cpython/pull/153786#issuecomment-5069741212
@johnslavikhttps://github.com/johnslavik
Please reload this pagehttps://github.com/python/cpython/pull/153786
https://github.com/johnslavik
johnslavikhttps://github.com/johnslavik
Jul 24, 2026https://github.com/python/cpython/pull/153786#issuecomment-5069815943
Please reload this pagehttps://github.com/python/cpython/pull/153786
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Jul 24, 2026 https://github.com/python/cpython/pull/153786#ref-issue-4969037518
Format attribute name with repr() when formatting AttributeError error message #154610 https://github.com/python/cpython/issues/154610
mbeijenhttps://github.com/mbeijen
Aug 14, 2026 https://github.com/python/cpython/pull/153786#ref-commit-9eecaa8
https://github.com/johnslavik
https://github.com/vstinner
https://github.com/mbeijen
pythongh-153785https://github.com/python/cpython/issues/153785
: Generatehttps://github.com/mbeijen/cpython/commit/9eecaa8122bd74fcbfca603f8ff1d585a9731170
AttributeErrorhttps://github.com/mbeijen/cpython/commit/9eecaa8122bd74fcbfca603f8ff1d585a9731170
messages from context (https://github.com/mbeijen/cpython/commit/9eecaa8122bd74fcbfca603f8ff1d585a9731170
pyt…https://github.com/python/cpython/pull/153786
9eecaa8https://github.com/mbeijen/cpython/commit/9eecaa8122bd74fcbfca603f8ff1d585a9731170
…hon#153786https://github.com/python/cpython/pull/153786
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%2F153786
https://github.com/vstinner
vstinner https://github.com/vstinner
https://github.com/python/cpython/pull/153786/files/404359d0d172b2ac009a9b98a752a231bd98787f
https://github.com/DinoV
DinoV https://github.com/DinoV
https://github.com/python/cpython/pull/153786/files/086a0c947bf4cde5942691015bd8bbe54f856c08
https://github.com/serhiy-storchaka
serhiy-storchaka https://github.com/serhiy-storchaka
https://github.com/python/cpython/pull/153786/files/404359d0d172b2ac009a9b98a752a231bd98787f
https://github.com/pablogsal
pablogsal https://github.com/pablogsal
https://github.com/python/cpython/pull/153786/files/9b00321bf0664b41991d9d81b5b2e7cd38c95e43
https://github.com/iritkatriel
iritkatriel https://github.com/iritkatriel
Please reload this pagehttps://github.com/python/cpython/pull/153786
sprint https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Asprint
Sprint https://github.com/orgs/python/projects/32
Please reload this pagehttps://github.com/python/cpython/pull/153786
https://github.com/johnslavik
https://github.com/jaraco
https://github.com/serhiy-storchaka
https://github.com/vstinner
https://github.com/DinoV
https://github.com/pablogsal
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.