[Python-Dev] Re: Proliferation of tstate arguments.

2020年3月18日 10:04:16 -0700

Antoine Pitrou [mailto:[email protected]]:
> 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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/CUZQ4NYBPY25M5ISJ5JT66XMW7KWP4DJ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to