[Python-Dev] PEP 550 v4

David Mertz mertz at gnosis.cx
Sat Aug 26 13:10:26 EDT 2017

Would it be possible/desirable to make the default a unique string value
like a UUID or a stringified counter?

On Aug 26, 2017 9:35 AM, "Yury Selivanov" <yselivanov.ml at gmail.com> wrote:

On Sat, Aug 26, 2017 at 12:56 AM, David Mertz <mertz at gnosis.cx> wrote:
> This is now looking really good and I can understands it.


> One question though. Sometimes creation of a context variable is done
with a
> name argument, other times not. E.g.
>   var1 = new_context_var('var1')
>   var = new_context_var()

We were very focused on making the High-level Specification as
succinct as possible, omitting some API details that are not important
for understanding the semantics.

"name" argument is not optional and will be required.  If it's
optional, people will not provide it, making it very hard to
introspect the context when we want it.

I guess we'll just update the High-level Specification section to use
the correct signature of "new_context_var".

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20170826/aae48b15/attachment.html>

More information about the Python-Dev mailing list