You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
asyncio.print_call_graph() loses the call stack at synchronous generators #156988
* Task(name='Task-1', id=0x103f78b90)
+ Call stack:
| File '/Users/timofeiivankov/cpython/repro.py', line 6, in generator page_ids()
Expected:
* Task(name='Task-1', id=0x103cd4b90)
+ Call stack:
| File '/Users/timofeiivankov/cpython/repro.py', line 6, in generator page_ids()
| File '/Users/timofeiivankov/cpython/repro.py', line 11, in collect()
| File '/Users/timofeiivankov/cpython/repro.py', line 14, in async fetch()
| File '/Users/timofeiivankov/cpython/repro.py', line 17, in async main()
Proposed fix: change is_async check
From: is_async = f.f_generator is not None to is_async = isinstance(f.f_generator, types.CoroutineType)
Activity
gh-156988: Fix asyncio call graph breaking at sync generators (#156991)
[3.14] gh-156988: Fix asyncio call graph loss at sync generators (#15…
[3.15] gh-156988: Fix asyncio call graph loss at sync generators (#15…
pythongh-156988: Fix asyncio call graph breaking at sync generators (p…
gh-000000: Address review findings for lazy coroutine materialization