Raymond Hettinger wrote:
Here is a head start on the research.
The ceval.c use of tstate goes back to the introduction of generators in 2001.
The use in traceback.c and sysmodule.c goes back to 1997 when per-thread globals were factored into a structure to support separate thread-state management.
Prior to that, the history is more diffuse and harder to follow.
Thanks a lot. I did a similar research on Friday, but for some reason it was not accepted by python.org, as it appears. (why, only 4 k, yours was 10?)
I will try to send it again.
My summary: f_tstate not needed!
ciao - chris