[issue22474] No explanation of how a task gets destroyed in asyncio 'task' documentation

2019-02-06 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

It seems that the note about a warning being logged if a pending task is 
destroyed does not exist in the new, rewritten version of the asyncio docs.  
Therefore, I'm going to close this as out of date.

--
nosy: +cheryl.sabella
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22474] No explanation of how a task gets destroyed in asyncio 'task' documentation

2014-09-25 Thread Martin Panter

Changes by Martin Panter vadmium...@gmail.com:


--
nosy: +vadmium

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22474
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22474] No explanation of how a task gets destroyed in asyncio 'task' documentation

2014-09-24 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +giampaolo.rodola, gvanrossum, haypo, pitrou, yselivanov

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22474
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22474] No explanation of how a task gets destroyed in asyncio 'task' documentation

2014-09-24 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
components: +asyncio

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22474
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22474] No explanation of how a task gets destroyed in asyncio 'task' documentation

2014-09-24 Thread STINNER Victor

STINNER Victor added the comment:

destroyed means collected by the garbage collector, when the last reference 
the task objected was cleared. To be honest, I have no idea who keeps a 
reference to tasks nor how the pending task destroyed bug occurs.

pending means that the execution of the coroutine object didn't finish. In 
fact, it's related to Task.done(): a task is pending is task.done() is False.

There is a corner case: if task.cancel() was called but the coroutine object 
was not executed yet to handle the CancelledError, the task is still pending.

Maybe pending is not the best word, and not done is better.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22474
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22474] No explanation of how a task gets destroyed in asyncio 'task' documentation

2014-09-23 Thread R. David Murray

New submission from R. David Murray:

In https://docs.python.org/3/library/asyncio-task.html#task, there is a note 
about a warning being logged if a pending task is destroyed.  The section does 
not explain or link to an explanation of how a task might get destroyed.  Nor 
does it define pending, but that seems reasonably clear from context (ie: the 
future has not completed).

The example linked to does not show how the pending task got destroyed, it only 
shows an example of the resulting logging, with not enough information to 
really understand what the final line of the error message is reporting (is 
kill_me an asyncio API, or the name of the task, or the future it is wrapping?)

--
assignee: docs@python
components: Documentation
messages: 227400
nosy: docs@python, r.david.murray
priority: normal
severity: normal
status: open
title: No explanation of how a task gets destroyed in asyncio 'task' 
documentation
type: behavior
versions: Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22474
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com