René's URL Explorer Experiment


Title: profiling.sampling: exception mode misses except blocks running in generators and coroutines · Issue #158539 · python/cpython · GitHub

Open Graph Title: profiling.sampling: exception mode misses except blocks running in generators and coroutines · Issue #158539 · python/cpython

X Title: profiling.sampling: exception mode misses except blocks running in generators and coroutines · Issue #158539 · python/cpython

Description: Bug report Background I have been writing a set of guided workshops on Tachyon as a way of learning it (https://github.com/GrahamDumpleton/tachyon-workshops), using an AI agent to generate the workshop content. While working on a worksho...

Open Graph Description: Bug report Background I have been writing a set of guided workshops on Tachyon as a way of learning it (https://github.com/GrahamDumpleton/tachyon-workshops), using an AI agent to generate the work...

X Description: Bug report Background I have been writing a set of guided workshops on Tachyon as a way of learning it (https://github.com/GrahamDumpleton/tachyon-workshops), using an AI agent to generate the work...

Opengraph URL: https://github.com/python/cpython/issues/158539

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"profiling.sampling: exception mode misses except blocks running in generators and coroutines","articleBody":"### Bug report\n\n## Background\n\nI have been writing a set of guided workshops on Tachyon as a way of learning it (https://github.com/GrahamDumpleton/tachyon-workshops), using an AI agent to generate the workshop content. While working on a workshop about exception mode, the agent found that a function which catches exceptions had far fewer samples in `--mode exception` when called from a generator expression than when called from a plain loop, with nothing else changed. It reduced that to the script below and believes there is a disparity between what the documentation says exception mode records and what it actually records.\n\nThat seems reasonable to me, but I do not have the knowledge of the internals to say whether this is a bug, a known shortcoming, or by design, so I am reporting what was found and how to reproduce it. The analysis of the cause at the end is the agent's, and I cannot evaluate it myself.\n\n## What the documentation says\n\nThe exception mode section of the `profiling.sampling` docs says samples are recorded when an exception is being propagated, \"or when code is executing inside an `except` block where exception information is still present in the thread state\". There is no mention of generators or coroutines being treated differently.\n\n## What happens\n\nAn `except` block that runs inside a generator or a coroutine, or in an ordinary function called from one, is never sampled in exception mode. The same `except` block in a plain function is sampled as expected.\n\nThe script below has five cases. Each raises `ValueError`, catches it, and spends one second in a busy loop inside the `except` block. They differ only in what kind of frame the handler, or its caller, is.\n\n```python\nimport asyncio\nimport time\n\n\ndef busy(seconds):\n    end = time.perf_counter() + seconds\n    while time.perf_counter() \u003c end:\n        pass\n\n\ndef handler_in_function():\n    try:\n        raise ValueError(\"handled in a function\")\n    except ValueError:\n        busy(1.0)\n\n\ndef handler_in_generator():\n    try:\n        raise ValueError(\"handled in a generator\")\n    except ValueError:\n        busy(1.0)\n    yield\n\n\ndef handler_in_genexpr_callee():\n    try:\n        raise ValueError(\"handled in a function called from a generator expression\")\n    except ValueError:\n        busy(1.0)\n\n\nasync def handler_in_coroutine():\n    try:\n        raise ValueError(\"handled in a coroutine\")\n    except ValueError:\n        busy(1.0)\n\n\nasync def calls_handler_from_coroutine():\n    handler_in_coroutine_callee()\n\n\ndef handler_in_coroutine_callee():\n    try:\n        raise ValueError(\"handled in a function called from a coroutine\")\n    except ValueError:\n        busy(1.0)\n\n\nhandler_in_function()\nfor _ in handler_in_generator():\n    pass\nlist(handler_in_genexpr_callee() for _ in range(1))\nasyncio.run(handler_in_coroutine())\nasyncio.run(calls_handler_from_coroutine())\n```\n\nRun it in wall-clock mode and then in exception mode:\n\n```\npython -m profiling.sampling run --mode wall --sort cumtime -l 40 --no-summary repro.py\npython -m profiling.sampling run --mode exception --sort cumtime -l 40 --no-summary repro.py\n```\n\nWall-clock mode sees all five handlers for about a second each (rows for `repro.py` only):\n\n```\nCaptured 5080 samples in 5.08 seconds\n       nsamples   sample%   tottime (s)    cumul%   cumtime (s)  filename:lineno(function)\n      4969/4969      98.0         4.969      98.0         4.969  repro.py:7(busy)\n         0/1000       0.0         0.000      19.7         1.000  repro.py:15(handler_in_function)\n         0/1000       0.0         0.000      19.7         1.000  repro.py:51(\u003cmodule>)\n         0/1000       0.0         0.000      19.7         1.000  repro.py:22(handler_in_generator)\n         0/1000       0.0         0.000      19.7         1.000  repro.py:52(\u003cmodule>)\n         0/1000       0.0         0.000      19.7         1.000  repro.py:30(handler_in_genexpr_callee)\n         0/1000       0.0         0.000      19.7         1.000  repro.py:54(\u003cgenexpr>)\n         0/1000       0.0         0.000      19.7         1.000  repro.py:54(\u003cmodule>)\n         0/1000       0.0         0.000      19.7         1.000  repro.py:37(handler_in_coroutine)\n         0/1000       0.0         0.000      19.7         1.000  repro.py:55(\u003cmodule>)\n         0/1000       0.0         0.000      19.7         1.000  repro.py:48(handler_in_coroutine_callee)\n         0/1000       0.0         0.000      19.7         1.000  repro.py:41(calls_handler_from_coroutine)\n         0/1000       0.0         0.000      19.7         1.000  repro.py:56(\u003cmodule>)\n           0/66       0.0         0.000       1.3         0.066  repro.py:1(\u003cmodule>)\n          31/31       0.6         0.031       0.6         0.031  repro.py:8(busy)\n```\n\nException mode sees only the first:\n\n```\nCaptured 5075 samples in 5.08 seconds\n       nsamples   sample%  tottime (ms)    cumul%   cumtime (s)  filename:lineno(function)\n         0/1000       0.0         0.000     100.0         1.000  repro.py:15(handler_in_function)\n         0/1000       0.0         0.000     100.0         1.000  repro.py:51(\u003cmodule>)\n        993/993      99.3       993.000      99.3         0.993  repro.py:7(busy)\n            7/7       0.7         7.000       0.7         0.007  repro.py:8(busy)\n```\n\n| Case | Wall-clock samples | Exception mode samples |\n| --- | --- | --- |\n| `handler_in_function` | 1000 | 1000 |\n| `handler_in_generator` | 1000 | 0 |\n| `handler_in_genexpr_callee` | 1000 | 0 |\n| `handler_in_coroutine` | 1000 | 0 |\n| `handler_in_coroutine_callee` | 1000 | 0 |\n\nThe exception mode run reports an error rate of 0.00 and captured over 5000 samples, so the samples were taken; they were then discarded by the mode's filter. From inside the program, `sys.exception()` returns the `ValueError` in every one of the five handlers.\n\nThis was reproduced on two builds of 3.15.0rc2, the `python:3.15-rc-slim` Docker image (GCC) and the python-build-standalone build installed by uv (Clang), both on Linux aarch64 in a container, as a non-root user, using `run` so no ptrace permission is involved.\n\nIf the behaviour is intended, the practical effect seems worth noting in the docs: in an asyncio program every `except` block runs in a coroutine or in something called from one, so exception mode reports almost nothing for the whole program, which reads as \"exceptions are not your problem\" rather than as a limitation.\n\n## AI analysis of the cause (not verified by me)\n\nWhat follows is the agent's reading of the source. I am including it in case it saves someone time, but I cannot judge whether it is right.\n\nIn `Modules/_remote_debugging/threads.c`, the check that sets `THREAD_STATUS_HAS_EXCEPTION` reads `current_exception` and then `exc_state.exc_value`, the exception stack entry embedded in `PyThreadState`, with a comment that \"nested exception handlers where exc_info points elsewhere are rare\":\n\n```c\n    // Check exc_state.exc_value (exception being handled in except block)\n    // exc_state is embedded in PyThreadState, so we read it directly from\n    // the thread state buffer. This catches most cases; nested exception\n    // handlers where exc_info points elsewhere are rare.\n    if (!has_exception) {\n        uintptr_t exc_value = GET_MEMBER(uintptr_t, ts,\n            unwinder->debug_offsets.thread_state.exc_state +\n            unwinder->debug_offsets.err_stackitem.exc_value);\n        if (exc_value != 0) {\n            has_exception = 1;\n        }\n    }\n```\n\nThe agent's explanation is that the interpreter records a handled exception in `tstate->exc_info->exc_value`, and that while a generator or coroutine is running, `exc_info` points at the generator's own `_PyErr_StackItem` rather than the thread's `exc_state`. A handler running in the generator, or in anything it calls, writes to the generator's entry, so `exc_state` stays empty and the profiler sees no exception. That would make the \"rare\" case every `except` block in every `async def`. It also matches the case of a plain function called from a generator expression being missed even though the handler is not itself in a generator.\n\nIt also noted that PR #142561, which added the mode, describes the check as using `exc_info`, and that a review comment on the docs (https://github.com/python/cpython/pull/142561#discussion_r2611748072) pointed out the code reads `exc_state`; the field name was then removed from the docs. The tests in `test_external_inspection.py` (`TestExceptionDetectionScenarios`) describe the condition as \"`exc_info->exc_value` is set\" but only put the handler in a plain function, where the two coincide.\n\nThe suggested fix was to add `exc_info` to the debug offsets, use the embedded `exc_state` value when `exc_info` points at it (as now, at no extra cost), and otherwise read the `_PyErr_StackItem` it points at and walk `previous_item`, as `_PyErr_GetTopmostException` does. Whether that is the right approach, or whether changing the debug offsets is acceptable at this stage, is beyond what I can assess.\n\n\n### CPython versions tested on:\n\n3.15\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-158581\n* gh-158852\n* gh-158906\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/GrahamDumpleton","@type":"Person","name":"GrahamDumpleton"},"datePublished":"2026-09-30T23:54:40Z","url":"https://github.com/python/cpython/issues/158539"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3b8ad652-9e08-35b4-6c43-e4945e88f221
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCFE6:269AD9:38FB787:4C0A12E:6B021B79
html-safe-nonce1ab13686e6bc6fca63bacacc8518f68fb5883d22719ee90fda02cef61cf06fb1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkU2OjI2OUFEOTozOEZCNzg3OjRDMEExMkU6NkIwMjFCNzkiLCJ2aXNpdG9yX2lkIjoiODA3MDU2MzA3OTM2NjI1MzQzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaceb3bb0a64ae0e68a46ce7e18dbc3b8b2f65f60f4e88289070fe4781b6a85175c
hovercard-subject-tagissue:5654595395
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/158539/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3e0020471975232005ae45bf66a113199b48c8149d8b97634c6e970ce50d546b/python/cpython/issues/158539
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3e0020471975232005ae45bf66a113199b48c8149d8b97634c6e970ce50d546b/python/cpython/issues/158539
og:image:altBug report Background I have been writing a set of guided workshops on Tachyon as a way of learning it (https://github.com/GrahamDumpleton/tachyon-workshops), using an AI agent to generate the work...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameGrahamDumpleton
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
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-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/158539#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F158539
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%2Fissues%2F158539
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/158539
Reloadhttps://github.com/python/cpython/issues/158539
Reloadhttps://github.com/python/cpython/issues/158539
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
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/158539
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/158539
#158581https://github.com/python/cpython/pull/158581
profiling.sampling: exception mode misses except blocks running in generators and coroutineshttps://github.com/python/cpython/issues/158539#top
#158581https://github.com/python/cpython/pull/158581
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
topic-profilinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-profiling%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/GrahamDumpleton
GrahamDumpletonhttps://github.com/GrahamDumpleton
on Sep 30, 2026https://github.com/python/cpython/issues/158539#issue-5654595395
https://github.com/GrahamDumpleton/tachyon-workshopshttps://github.com/GrahamDumpleton/tachyon-workshops
#142561https://github.com/python/cpython/pull/142561
#142561 (comment)https://github.com/python/cpython/pull/142561#discussion_r2611748072
gh-158539: Fix exception mode missing handlers in generators/coroutines #158581https://github.com/python/cpython/pull/158581
[3.15] gh-158539: Fix exception mode missing handlers in generators/coroutines (GH-158581) #158852https://github.com/python/cpython/pull/158852
[3.14] gh-158539: Fix macOS runtime section lookup for remote debugging (GH-158874) #158906https://github.com/python/cpython/pull/158906
GrahamDumpletonhttps://github.com/GrahamDumpleton
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Sep 30, 2026https://github.com/python/cpython/issues/158539#event-32209609918
https://github.com/maurycy
maurycyhttps://github.com/maurycy
on Oct 1, 2026https://github.com/python/cpython/issues/158539#issuecomment-5927099351
@pablogsalhttps://github.com/pablogsal
https://github.com/GrahamDumpleton
GrahamDumpletonhttps://github.com/GrahamDumpleton
on Oct 1, 2026https://github.com/python/cpython/issues/158539#issuecomment-5927606826
picnixzhttps://github.com/picnixz
topic-profilinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-profiling%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
on Oct 1, 2026https://github.com/python/cpython/issues/158539#event-32255034376
hetaozdhhttps://github.com/hetaozdh
on Oct 1, 2026https://github.com/python/cpython/issues/158539#event-32291415777
Merge branch 'main' into pythongh-158539https://github.com/hetaozdh/cpython/commit/26762c86e3bf46438bb76974448ee98dcbf4cdcb
pythongh-158539https://github.com/python/cpython/issues/158539
26762c8https://github.com/hetaozdh/cpython/commit/26762c86e3bf46438bb76974448ee98dcbf4cdcb
https://github.com/hetaozdh
hetaozdhhttps://github.com/hetaozdh
on Oct 1, 2026https://github.com/python/cpython/issues/158539#issuecomment-5941324575
hetaozdhhttps://github.com/hetaozdh
on Oct 1, 2026https://github.com/python/cpython/issues/158539#event-32293984387
pythongh-158539: Fix exception mode missing handlers in generators/co…https://github.com/hetaozdh/cpython/commit/2dbcf91f5edcb216fbc0f2cd2b6dfc35fee4c4e4
pythongh-158539https://github.com/python/cpython/issues/158539
2dbcf91https://github.com/hetaozdh/cpython/commit/2dbcf91f5edcb216fbc0f2cd2b6dfc35fee4c4e4
pablogsalhttps://github.com/pablogsal
on Oct 5, 2026https://github.com/python/cpython/issues/158539#event-32515209885
pythongh-158539: Handle deep exception chains without changing debug …https://github.com/hetaozdh/cpython/commit/23ae30faedefd6d74bd319b60d263b5345e322a0
pythongh-158539https://github.com/python/cpython/issues/158539
23ae30fhttps://github.com/hetaozdh/cpython/commit/23ae30faedefd6d74bd319b60d263b5345e322a0
pythongh-158539: Use portable static assertion messageshttps://github.com/hetaozdh/cpython/commit/6c0b716fe9284a620680498571c7488a8a06609f
pythongh-158539https://github.com/python/cpython/issues/158539
6c0b716https://github.com/hetaozdh/cpython/commit/6c0b716fe9284a620680498571c7488a8a06609f
[3.15] pythongh-158539: Use portable static assertion messageshttps://github.com/pablogsal/cpython/commit/370180d849e7977083ee515b9056de3f483d384b
pythongh-158539https://github.com/python/cpython/issues/158539
370180dhttps://github.com/pablogsal/cpython/commit/370180d849e7977083ee515b9056de3f483d384b
pythongh-158539: Keep layout assertions with debug-offset validationhttps://github.com/hetaozdh/cpython/commit/cea31121cb8baafb05114ce9618e417de56b44c9
pythongh-158539https://github.com/python/cpython/issues/158539
cea3112https://github.com/hetaozdh/cpython/commit/cea31121cb8baafb05114ce9618e417de56b44c9
[3.15] pythongh-158539: Keep layout assertions with debug-offset vali…https://github.com/pablogsal/cpython/commit/336310a7d62b9ba439d118e241b6d47503dbfa91
pythongh-158539https://github.com/python/cpython/issues/158539
336310ahttps://github.com/pablogsal/cpython/commit/336310a7d62b9ba439d118e241b6d47503dbfa91
pythongh-158539: Use the platform guard for in-process inspection testshttps://github.com/hetaozdh/cpython/commit/beac4bdd50d147305031671ddf462282b44730e4
pythongh-158539https://github.com/python/cpython/issues/158539
beac4bdhttps://github.com/hetaozdh/cpython/commit/beac4bdd50d147305031671ddf462282b44730e4
[3.15] pythongh-158539: Use the platform guard for in-process inspect…https://github.com/pablogsal/cpython/commit/27eb316b6d17b27a13a4c391240b7eaedb4b5884
pythongh-158539https://github.com/python/cpython/issues/158539
27eb316https://github.com/pablogsal/cpython/commit/27eb316b6d17b27a13a4c391240b7eaedb4b5884
pablogsalhttps://github.com/pablogsal
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#158581https://github.com/python/cpython/pull/158581
on Oct 5, 2026https://github.com/python/cpython/issues/158539#event-32521239435
pablogsalhttps://github.com/pablogsal
on Oct 5, 2026https://github.com/python/cpython/issues/158539#event-32521239465
gh-158539: Fix exception mode missing handlers in generators/coroutin…https://github.com/python/cpython/commit/38416fedef5496cb10223cfecf28e3952c47e1d7
gh-158539https://github.com/python/cpython/issues/158539
38416fehttps://github.com/python/cpython/commit/38416fedef5496cb10223cfecf28e3952c47e1d7
[3.15] gh-158539: Fix exception mode missing handlers in generators/c…https://github.com/python/cpython/commit/d625ecbb8d36b7dd26c61b13d1c97de117d36642
gh-158539https://github.com/python/cpython/issues/158539
d625ecbhttps://github.com/python/cpython/commit/d625ecbb8d36b7dd26c61b13d1c97de117d36642
Revert "[3.15] pythongh-158539: Fix exception mode missing handlers i…https://github.com/pablogsal/cpython/commit/bdd33034b0a04573fad846e2281de159910b04dc
pythongh-158539https://github.com/python/cpython/issues/158539
bdd3303https://github.com/pablogsal/cpython/commit/bdd33034b0a04573fad846e2281de159910b04dc
gh-156545, gh-158539: Fix deep flamegraph export on small C stacks an…https://github.com/python/cpython/commit/114de198c0a05d8169cdbbd8f1e0976dc1319284
gh-156545https://github.com/python/cpython/issues/156545
gh-158539https://github.com/python/cpython/issues/158539
114de19https://github.com/python/cpython/commit/114de198c0a05d8169cdbbd8f1e0976dc1319284
pythongh-156545, pythongh-158539: Fix deep flamegraph export on small…https://github.com/pablogsal/cpython/commit/82b7d1fa067656b2e1c4dbedb45da667180e8746
pythongh-156545https://github.com/python/cpython/issues/156545
pythongh-158539https://github.com/python/cpython/issues/158539
82b7d1fhttps://github.com/pablogsal/cpython/commit/82b7d1fa067656b2e1c4dbedb45da667180e8746
[3.14] gh-158539: Fix macOS runtime section lookup for remote debuggi…https://github.com/python/cpython/commit/fb313a3948fb27e18f68c1df9deaa79c2fd394f2
gh-158539https://github.com/python/cpython/issues/158539
fb313a3https://github.com/python/cpython/commit/fb313a3948fb27e18f68c1df9deaa79c2fd394f2
[3.15] Restore deferred backports for 3.15.1, including GH-158874 (#1…https://github.com/python/cpython/commit/4ceb3faf2c1f5bf17c56be085c4b1c1b38e47f9e
GH-158874https://github.com/python/cpython/pull/158874
#1…https://github.com/python/cpython/pull/158882
4ceb3fahttps://github.com/python/cpython/commit/4ceb3faf2c1f5bf17c56be085c4b1c1b38e47f9e
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/158539
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/158539
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
topic-profilinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-profiling%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
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.