A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2017-September/149286.html below:

[Python-Dev] PEP 550 v4

[Python-Dev] PEP 550 v4 [Python-Dev] PEP 550 v4Greg Ewing greg.ewing at canterbury.ac.nz
Thu Sep 7 07:39:39 EDT 2017
There are a couple of things in the PEP I'm confused about:

1) Under "Generators" it says:

    once set in the generator, the context variable is guaranteed
    not to change between iterations;

This suggests that you're not allowed to set() a given
context variable more than once in a given generator,
but some of the examples seem to contradict that. So I'm
not sure what this is trying to say.

2) I don't understand why the logical_contexts have to
be immutable. If every task or generator that wants its
own task-local storage has its own logical_context
instance, why can't it be updated in-place?

-- 
Greg

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4