Antoine Pitrou [mailto:solip...@pitrou.net]:
> This example is mixing up the notion of interpreter state and thread state.

Sorry about that, I was making a more general point and not paying so much
attention to the specific names.

The general point is this: A thread-local variable can work as an implied
parameter without creating synchronisation problems.  You do not have to worry
about painting yourself into an architectural corner by using thread-local
variables, because anything you can do with an explicit parameter, you could
also have done with an implied one in thread-local memory.

Correctness is not at stake.  Either approach will work.

regards, Anders
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/CUZQ4NYBPY25M5ISJ5JT66XMW7KWP4DJ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to