New submission from Richard Kiss:

Some tasks created via asyncio are vanishing because there is no reference to 
their resultant futures.

This behaviour does not occur in Python 3.3.3 with asyncio-0.4.1.

Also, doing a gc.collect() immediately after creating the tasks seems to fix 
the problem.

Attachment also available at https://gist.github.com/richardkiss/9988156

----------
components: Library (Lib)
files: asyncio-gc-issue.py
hgrepos: 231
messages: 215633
nosy: richard.kiss
priority: normal
severity: normal
status: open
title: asyncio Task Possibly Incorrectly Garbage Collected
type: behavior
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file34741/asyncio-gc-issue.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21163>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to