[Python-Dev] Timeout for PEP 550 / Execution Context discussion

Guido van Rossum guido at python.org
Mon Oct 16 01:04:31 EDT 2017


On Sun, Oct 15, 2017 at 8:12 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:

> On 16 October 2017 at 11:33, Yury Selivanov <yselivanov.ml at gmail.com>
> wrote:
>
>> Stage 2. When Python 3.7 is out, we'll see how people use execution
>> contexts for async code and collect feedback.  If we recognize that
>> Python users want execution contexts for generators/asynchronous
>> generators, we'll make a new PEP to add support for them in Python
>> 3.8.  That future discussion will be focused on generators
>> specifically, and therefore I expect it to be somewhat more focused.
>>
>
> As long as it's made clear that the interaction between context variables
> and generators is formally undefined in 3.7, I think that's reasonable -
> folks that want to ensure the current behaviour indefinitely should keep
> using thread locals rather than switching over to context variables.
>

It shouldn't be formally undefined. It should have the semantics it
acquires when you combine the existing (well-defined) formal semantics of
generators with the (to be defined) formal semantics of context variables.

-- 
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20171015/67c43ae5/attachment.html>


More information about the Python-Dev mailing list