On Mon, Aug 28, 2017 at 6:19 PM, Eric Snow
On Sat, Aug 26, 2017 at 10:31 AM, Yury Selivanov
wrote: On Sat, Aug 26, 2017 at 9:33 AM, Sven R. Kunze
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-int... Yury