[Python-ideas] PEP 550 v2

Ethan Furman ethan at stoneleaf.us
Fri Aug 18 21:25:46 EDT 2017


On 08/17/2017 02:40 AM, Nick Coghlan wrote:
> On 17 August 2017 at 04:38, Yury Selivanov wrote:

>      ck.get_value() attempts to look up the value for that key in the
> currently active execution context.
>      If it doesn't find one, it then tries each of the execution
> contexts in the currently active dynamic context.
>      If it *still* doesn't find one, then it will set the default value
> in the outermost execution context and then return that value.

For what it's worth, I find the term DynamicContext much easier to understand with relation to these concepts.

--
~Ethan~



More information about the Python-ideas mailing list