On Sun, Aug 13, 2017 at 9:57 AM, Yury Selivanov <[email protected]> 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
_______________________________________________
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to