GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — `asyncio.print_call_graph()` loses the call stack at synchronous generators · Issue #156988 · python/cpython Closed Labels stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-asynciotype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportBug description:A single synchronous generator on the stack hides the whole async call chain above it Repro: import asyncio def page_ids(total): for i in range(total): if i == 100: print(asyncio.format_call_graph()) return yield i def collect(): return list(page_ids(250)) async def fetch(): return collect() async def main(): print('got', len(await fetch()), 'ids') asyncio.run(main()) Actual output: Expected: Proposed fix: change From: Have a fix ready for that CPython versions tested on:CPython main branch Operating systems tested on:macOS Linked PRsActivity
MetadataMetadataAssigneesLabelsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-asynciotype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error Projects
MilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |