Skip to content

Commit 68c68d7

Browse files
henryiiiCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
1 parent ae0da30 commit 68c68d7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/advanced/embedding.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ Activating a Sub-interpreter
301301
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
302302

303303
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`
305305
instance and passing it the sub-intepreter to be activated. The function
306306
will acquire the sub-interpreter's GIL and make the sub-interpreter the
307307
current active interpreter on the current thread for the lifetime of the

include/pybind11/subinterpreter.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ PYBIND11_NAMESPACE_END(detail)
3232

3333
class 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.
3838
class subinterpreter_scoped_activate {
3939
public:
@@ -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

0 commit comments

Comments
 (0)