On Mon, Aug 28, 2017 at 6:19 PM, Eric Snow <ericsnowcurren...@gmail.com> wrote: > On Sat, Aug 26, 2017 at 10:31 AM, Yury Selivanov > <yselivanov...@gmail.com> wrote: >> On Sat, Aug 26, 2017 at 9:33 AM, Sven R. Kunze <srku...@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 _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com