File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ Activating a Sub-interpreter
301301^^^^^^^^^^^^^^^^^^^^^^^^^^^^
302302
303303Once a sub-interpreter is created, you can "activate" it on a thread (and
304- acquire it's GIL) by creating a :class: `subinterpreter_scoped_activate `
304+ acquire its GIL) by creating a :class: `subinterpreter_scoped_activate `
305305instance and passing it the sub-intepreter to be activated. The function
306306will acquire the sub-interpreter's GIL and make the sub-interpreter the
307307current active interpreter on the current thread for the lifetime of the
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ PYBIND11_NAMESPACE_END(detail)
3232
3333class subinterpreter;
3434
35- // / Activate the subinterpreter and acquire it's GIL, while also releasing any GIL and interpreter
36- // / currently held. Upon exiting the scope, the previous subinterpreter (if any) and it's
35+ // / Activate the subinterpreter and acquire its GIL, while also releasing any GIL and interpreter
36+ // / currently held. Upon exiting the scope, the previous subinterpreter (if any) and its
3737// / associated GIL are restored to their state as they were before the scope was entered.
3838class subinterpreter_scoped_activate {
3939public:
@@ -263,8 +263,8 @@ inline subinterpreter_scoped_activate::subinterpreter_scoped_activate(subinterpr
263263 return ;
264264 }
265265
266- // we can't really innteract with the interpreter at all until we switch to it
267- // not even to, for example, look in it's state dict or touch its internals
266+ // we can't really interact with the interpreter at all until we switch to it
267+ // not even to, for example, look in its state dict or touch its internals
268268 tstate_ = PyThreadState_New (si.istate_ );
269269
270270 // make the interpreter active and acquire the GIL
You can’t perform that action at this time.
0 commit comments