[Python-ideas] New PEP 550: Execution Context

Nathaniel Smith njs at pobox.com
Sun Aug 13 15:14:07 EDT 2017


On Sun, Aug 13, 2017 at 9:57 AM, Yury Selivanov <yselivanov.ml at gmail.com> wrote:
> 2. ContextItem.has(), ContextItem.get(), ContextItem.set(),
> ContextItem.delete() -- pretty self-explanatory.

It might make sense to simplify even further and declare that context
items are initialized to None to start, and the only operations are
set() and get(). And then get() can't fail, b/c there is no "value
missing" state.

-n

-- 
Nathaniel J. Smith -- https://vorpus.org


More information about the Python-ideas mailing list