Reply to Chris:

Also it's rarely the case where it can become thread unsafe suddenly. 1 / 
10*something chances. Because I've repeatedly run a thread-unsafe code and have 
not encountered thread unsafe state yet. GIL executes the code to a very good 
extent. And is it hypothetically even possible to have thread unsafe state that 
can affect functions? Because locals of the different functions are different. 
Since the variable will be loaded by LOAD_FAST it will look into locals for the 
static variable and both locals will differ. The only dangerous code is op=. 
Because this depends on the current value of static variable that can make the 
function go to an undefined state.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/T5234WEZ2HJZVLJNYAV565IGRSVYQLIC/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to