René's URL Explorer Experiment


Title: Attach traceback before notifying exception observers by youknowdot · Pull Request #9983 · RustPython/RustPython · GitHub

Open Graph Title: Attach traceback before notifying exception observers by youknowdot · Pull Request #9983 · RustPython/RustPython

X Title: Attach traceback before notifying exception observers by youknowdot · Pull Request #9983 · RustPython/RustPython

Description: This PR follows the RustPython AI policy. Summary The CPython 3.15.2 evaluator attaches the original traceback entry before notifying exception observers. Do the same in RustPython so both monitoring RAISE and the legacy exception trace callback see the raising frame. This prevents Pdb from reporting an ordinary generator StopIteration in its caller as an internal one. If a callback raises a replacement exception, unwind that exception without adding another entry for the original frame. Preserve the existing reraise handling and synthetic STOP_ITERATION events. Re-enable the existing Pdb generator next and return doctests. Verification Linux: both generator doctests passed with each of the monitoring and sys.settrace backends (4 cases), with no expected-failure override. On unmodified base c626010f all four fail with the old Pdb wording. Linux: 16 focused cases from test_monitoring and test_sys_settrace passed. Ordinary exception and generator traces, and exceptions raised by callbacks, matched CPython 3.15.2. Applicable repository pre-commit hooks passed. Full suites, other platforms, and performance were not verified locally. Codex prepared the parity change and ran the focused comparisons. Submitted as a draft at the project maintainer's request for their review. Summary by CodeRabbit Bug Fixes Improved exception reporting so tracebacks include source locations when available, while avoiding duplicate traceback entries for exceptions that already have one. Corrected how exceptions raised during monitored execution are handled, including cases where a trace callback changes the exception.

Open Graph Description: This PR follows the RustPython AI policy. Summary The CPython 3.15.2 evaluator attaches the original traceback entry before notifying exception observers. Do the same in RustPython so both monitor...

X Description: This PR follows the RustPython AI policy. Summary The CPython 3.15.2 evaluator attaches the original traceback entry before notifying exception observers. Do the same in RustPython so both monitor...

Opengraph URL: https://github.com/RustPython/RustPython/pull/9983

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:66e734fe-92d6-0ff7-9db4-4f9e9e6f9610
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB47E:269AD9:2E03FE5:3D77EC3:6B01D7E3
html-safe-noncebd7586d51fbf3f35222e84784736c9d2b351ac32a27f8bc0052c18fc5edea316
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDdFOjI2OUFEOToyRTAzRkU1OjNENzdFQzM6NkIwMUQ3RTMiLCJ2aXNpdG9yX2lkIjoiMTUzNzI0MDIwOTQ1NDkxMzUwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac74a9abcfa2de5657ea390f699b6532a8801e1caa3182065cda4a0c055e38b6a7
hovercard-subject-tagpull_request:5429703348
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/RustPython/RustPython/pull/9983/files
twitter:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
og:image:altThis PR follows the RustPython AI policy. Summary The CPython 3.15.2 evaluator attaches the original traceback entry before notifying exception observers. Do the same in RustPython so both monitor...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/9983/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9983%2Ffiles
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%2FRustPython%2FRustPython%2Fpull%2F9983%2Ffiles
Sign uphttps://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=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/9983/files
Reloadhttps://github.com/RustPython/RustPython/pull/9983/files
Reloadhttps://github.com/RustPython/RustPython/pull/9983/files
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests132 (132)https://github.com/RustPython/RustPython/pulls
Discussionshttps://github.com/RustPython/RustPython/discussions
Actionshttps://github.com/RustPython/RustPython/actions
Projectshttps://github.com/RustPython/RustPython/projects
Wikihttps://github.com/RustPython/RustPython/wiki
Security and qualityhttps://github.com/RustPython/RustPython/security
Insightshttps://github.com/RustPython/RustPython/insights
Sign up for GitHub https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
youknowdothttps://github.com/youknowdot
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowdot:fix-pdb-generator-tracebackhttps://github.com/youknowdot/RustPython/tree/fix-pdb-generator-traceback
Conversation 4 https://github.com/RustPython/RustPython/pull/9983
Commits 1 https://github.com/RustPython/RustPython/pull/9983/commits
Checks 8 https://github.com/RustPython/RustPython/pull/9983/checks
Files changed 2 https://github.com/RustPython/RustPython/pull/9983/files
Attach traceback before notifying exception observers https://github.com/RustPython/RustPython/pull/9983/files#top
Show all changes 1 commit https://github.com/RustPython/RustPython/pull/9983/files
8b0a0df Attach traceback before notifying exception observers youknowdot Nov 21, 2026 https://github.com/RustPython/RustPython/pull/9983/commits/8b0a0df565465a5c1bd426f9646d03796dc795da
Clear filters https://github.com/RustPython/RustPython/pull/9983/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9983/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9983/files
test_pdb.py https://github.com/RustPython/RustPython/pull/9983/files#diff-62d496a5c437924e8e749b16d45e0b928917c424ba7deb45112f5a7a9450c6f5
frame.rs https://github.com/RustPython/RustPython/pull/9983/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
Lib/test/test_pdb.pyhttps://github.com/RustPython/RustPython/pull/9983/files#diff-62d496a5c437924e8e749b16d45e0b928917c424ba7deb45112f5a7a9450c6f5
View file https://github.com/RustPython/RustPython/blob/8b0a0df565465a5c1bd426f9646d03796dc795da/Lib/test/test_pdb.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9983/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9983/files#diff-62d496a5c437924e8e749b16d45e0b928917c424ba7deb45112f5a7a9450c6f5
https://github.com/RustPython/RustPython/pull/9983/files#diff-62d496a5c437924e8e749b16d45e0b928917c424ba7deb45112f5a7a9450c6f5
https://github.com/RustPython/RustPython/pull/9983/files#diff-62d496a5c437924e8e749b16d45e0b928917c424ba7deb45112f5a7a9450c6f5
https://github.com/RustPython/RustPython/pull/9983/files#diff-62d496a5c437924e8e749b16d45e0b928917c424ba7deb45112f5a7a9450c6f5
crates/vm/src/frame.rshttps://github.com/RustPython/RustPython/pull/9983/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
View file https://github.com/RustPython/RustPython/blob/8b0a0df565465a5c1bd426f9646d03796dc795da/crates/vm/src/frame.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9983/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9983/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
https://github.com/RustPython/RustPython/pull/9983/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
https://github.com/RustPython/RustPython/pull/9983/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
https://github.com/RustPython/RustPython/pull/9983/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
https://github.com/RustPython/RustPython/pull/9983/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Nov 21, 2026https://github.com/RustPython/RustPython/pull/9983/files#r4653556713
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://camo.githubusercontent.com/0854bfc38139c0d2b58a9d5d71f5ad92840cf0c17144621e462b474041793354/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50322d79656c6c6f773f7374796c653d666c6174
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9983/files
https://github.com/RustPython/RustPython/pull/9983/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
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.