File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -357,15 +357,8 @@ \section{Thread State and the Global Interpreter Lock
357357
358358The Python interpreter needs to keep some bookkeeping information
359359separate per thread --- for this it uses a data structure called
360- \ctype {PyThreadState}\ttindex {PyThreadState}. This is new in Python
361- 1.5; in earlier versions, such state was stored in global variables,
362- and switching threads could cause problems. In particular, exception
363- handling is now thread safe, when the application uses
364- \withsubitem {(in module sys)}{\ttindex {exc_info()}}
365- \function {sys.exc_info()} to access the exception last raised in the
366- current thread.
367-
368- There's one global variable left, however: the pointer to the current
360+ \ctype {PyThreadState}\ttindex {PyThreadState}. There's one global
361+ variable, however: the pointer to the current
369362\ctype {PyThreadState}\ttindex {PyThreadState} structure. While most
370363thread packages have a way to store `` per-thread global data,''
371364Python's internal platform independent thread abstraction doesn't
You can’t perform that action at this time.
0 commit comments