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
301
301
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
302
302
303
303
Once 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 `
305
305
instance and passing it the sub-intepreter to be activated. The function
306
306
will acquire the sub-interpreter's GIL and make the sub-interpreter the
307
307
current 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)
32
32
33
33
class subinterpreter;
34
34
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
37
37
// / associated GIL are restored to their state as they were before the scope was entered.
38
38
class subinterpreter_scoped_activate {
39
39
public:
@@ -263,8 +263,8 @@ inline subinterpreter_scoped_activate::subinterpreter_scoped_activate(subinterpr
263
263
return ;
264
264
}
265
265
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
268
268
tstate_ = PyThreadState_New (si.istate_ );
269
269
270
270
// make the interpreter active and acquire the GIL
You can’t perform that action at this time.
0 commit comments