From 1a59ddcb5a76647bd1a3f19fd055649f70282f0e Mon Sep 17 00:00:00 2001
From: Darrell Anderson
-If a second instance of Pythonize is created (within the same parent process), that instance will actquire +If a second instance of Pythonize is created (within the same parent process), that instance will acquire the lock automatically. In order to allow a second (and third or more) instance of Pythonize to be created and obtain the lock, it's necessary to have a related thread state (PyThreadState). This thread state is created by a call to PyThreadState_Get when the first instance of Pythonize is created. The @@ -87,11 +87,11 @@ C:
-Constructor/initializer - loads and initializaes the interpreter and actquires the global interpreter lock. +Constructor/initializer - loads and initializaes the interpreter and acquires the global interpreter lock. Sets the value of pythonInit to true on success or false if construction/initialization fails Initializes the global thread state (first instance) or restores the global thread state (second and later instances). It is the programmer's resposibility to release the global interpreter lock to enable other -code to access the interpreter. The lock and thread state are automatically actquired when any Pythonize +code to access the interpreter. The lock and thread state are automatically acquired when any Pythonize instance is created..
-Actquires the global interpreter lock using PyEval_RestoreThread. Restores the global thread state. +Acquires the global interpreter lock using PyEval_RestoreThread. Restores the global thread state.