[Python-Dev] Pep 550 and None/masking (original) (raw)
Nathaniel Smith njs at pobox.com
Sun Aug 27 16:01:45 EDT 2017
- Previous message (by thread): [Python-Dev] Pep 550 and None/masking
- Next message (by thread): [Python-Dev] Pep 550 and None/masking
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I believe that the current status is:
assigning None isn't treated specially – it does mask any underlying values (which I think is what we want)
there is currently no way to "unmask"
but it's generally agreed that there should be a way to do that, at least in some cases, to handle the save/restore issue I raised. It's just that Yury & Elvis wanted to deal with restructuring the PEP first before doing more work on the api details.
-n
On Aug 27, 2017 9:08 AM, "Jim J. Jewett" <jimjjewett at gmail.com> wrote:
Does setting an ImplicitScopeVar to None set the value to None, or just remove it?
If it removes it, does that effectively unmask a previously masked value? If it really sets to None, then is there a way to explicitly unmask previously masked values? Perhaps the initial constructor should require an initial value (defaulting to None) and the docs should give examples both for using a sensible default value and for using a special "unset" marker. -jJ
Python-Dev mailing list Python-Dev at python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/ njs%40pobox.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20170827/427686f3/attachment.html>
- Previous message (by thread): [Python-Dev] Pep 550 and None/masking
- Next message (by thread): [Python-Dev] Pep 550 and None/masking
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]