[Python-Dev] PEP 550 v4 (original) (raw)

Yury Selivanov yselivanov.ml at gmail.com
Mon Aug 28 18:40:05 EDT 2017


On Mon, Aug 28, 2017 at 6:19 PM, Eric Snow <ericsnowcurrently at gmail.com> wrote:

On Sat, Aug 26, 2017 at 10:31 AM, Yury Selivanov <yselivanov.ml at gmail.com> wrote:

On Sat, Aug 26, 2017 at 9:33 AM, Sven R. Kunze <srkunze at mail.de> wrote: [..]

Why not the same interface as thread-local storage? This has been the question which bothered me from the beginning of PEP550. I don't understand what inventing a new way of access buys us here.

This was covered at length in these threads: https://mail.python.org/pipermail/python-ideas/2017-August/046888.html https://mail.python.org/pipermail/python-ideas/2017-August/046889.html FWIW, it would still be nice to have a simple replacement for the following under PEP 550: class Context(threading.local): ... Transitioning from there to PEP 550 is non-trivial.

And it should not be trivial, as the PEP 550 semantics is different from TLS. Using PEP 550 instead of TLS should be carefully evaluated.

Please also see this: https://www.python.org/dev/peps/pep-0550/#replication-of-threading-local-interface

Yury



More information about the Python-Dev mailing list