Re: [Python-Dev] PEP 550 v4

2017年9月07日 04:43:56 -0700

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
_______________________________________________
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