BBBinary BuddiesDevelopmentOct 18, 20265 min read0 views

Python asyncio: What Keeps a Coroutine's Locals Alive

A reported difference in object lifetime between two coroutines could not be reproduced on four CPython versions. Here is what actually holds a coroutine's locals, and what asyncio is free to retain.

Share this article

Pythoncoroutine framegarbage-collectionpython-asyncioreference countingweak-references

Comments