This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author njs
Recipients asvetlov, giampaolo.rodola, njs, yselivanov
Date 2018-01-29.04:10:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1517199022.43.0.467229070634.issue32703@psf.upfronthosting.co.za>
In-reply-to
Content
> Yury's theory: maybe BEFORE_ASYNC_WITH's error-handling path is forgetting to DECREF the object. Nope, that doesn't seem to be it. This version prints "refcount: 2" twice, *and* prints a proper "was never awaited" warning: ----- import sys async def open_file(): pass async def main(): open_file_coro = open_file() print("refcount:", sys.getrefcount(open_file_coro)) try: async with open_file_coro: pass except: pass print("refcount:", sys.getrefcount(open_file_coro)) coro = main() try: coro.send(None) except: pass
History
Date User Action Args
2018-01-29 04:10:22njssetrecipients: + njs, giampaolo.rodola, asvetlov, yselivanov
2018-01-29 04:10:22njssetmessageid: <1517199022.43.0.467229070634.issue32703@psf.upfronthosting.co.za>
2018-01-29 04:10:22njslinkissue32703 messages
2018-01-29 04:10:22njscreate