GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • [Python-Dev] PEP 567 -- Context Variables
  • [Python-Dev] PEP 567 -- Context Variables
  • [ date ]
  • [ thread ]
  • [ subject ]
  • [ author ]

This view

  • Original page
  • New address

GeezerVison is showing mail.python.org — [Python-Dev] PEP 567 -- Context Variables

[Python-Dev] PEP 567 -- Context Variables

Ivan Levkivskyi levkivskyi at gmail.com
Mon Dec 18 18:00:23 EST 2017

  • Previous message (by thread): [Python-Dev] PEP 567 -- Context Variables
  • Next message (by thread): [Python-Dev] PEP 567 -- Context Variables
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

On 13 December 2017 at 22:35, Yury Selivanov <yselivanov.ml at gmail.com>
wrote:

> [..]
> >> A new standard library module ``contextvars`` is added
> >
> > Why not add this to contextlib instead of adding a new module?  IIRC
> > this was discussed relative to PEP 550, but I don't remember the
> > reason.  Regardless, it would be worth mentioning somewhere in the
> > PEP.
> >
>
> The mechanism is generic and isn't directly related to context
> managers.  Context managers can (and in many cases should) use the new
> APIs to store global state, but the contextvars APIs do not depend on
> context managers or require them.
>
>
This was the main point of confusion for me when reading the PEP.
Concept of TLS is independent of context managers, but using word "context"
everywhere leads to doubts like "Am I getting everything right?" I think
just adding the
two quoted sentences will clarify the intent.

Otherwise the PEP is easy to read, the proposed API looks simple, and this
definitely will be a useful feature.

--
Ivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20171219/075eb508/attachment.html>

  • Previous message (by thread): [Python-Dev] PEP 567 -- Context Variables
  • Next message (by thread): [Python-Dev] PEP 567 -- Context Variables
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

More information about the Python-Dev mailing list
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.