Re: [Python-Dev] PEP 550 v3 naming

2017年8月23日 10:16:44 -0700

On 2017年8月23日 12:19:40 -0400
Yury Selivanov <[email protected]> wrote:
> PEP 550 calls generators and asynchronous tasks as "logical threads",
> and "logical context" stems directly from that notion.
I wouldn't refer to a generator as a "thread" personally. A thread
essentially executes without intervention from outside code, which is
not the case for a generator (where resumption is controlled by
explicit next() calls or iteration by the consumer).
That is also why I proposed the more general "task" (and "task
context"). Of course, capitalized "Task" is given a specific
meaning by asyncio...
Regards
Antoine.
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to