You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: rework to remove more references to the GIL (#5481)
* docs: rework to remove more references to the GIL
* Update src/instance.rs
Co-authored-by: Icxolu <10486322+Icxolu@users.noreply.github.com>
* update UI tests
* revert changes to static slots
* use `SLOTS` properly in `string-sum` example
* fixup slots, again
* fixup docs
---------
Co-authored-by: Icxolu <10486322+Icxolu@users.noreply.github.com>
Copy file name to clipboardExpand all lines: guide/src/python-from-rust/function-calls.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Both of these APIs take `args` and `kwargs` arguments (for positional and keywor
12
12
*[`call1`]({{#PYO3_DOCS_URL}}/pyo3/types/trait.PyAnyMethods.html#tymethod.call1) and [`call_method1`]({{#PYO3_DOCS_URL}}/pyo3/types/trait.PyAnyMethods.html#tymethod.call_method1) to call only with positional `args`.
13
13
*[`call0`]({{#PYO3_DOCS_URL}}/pyo3/types/trait.PyAnyMethods.html#tymethod.call0) and [`call_method0`]({{#PYO3_DOCS_URL}}/pyo3/types/trait.PyAnyMethods.html#tymethod.call_method0) to call with no arguments.
14
14
15
-
For convenience the [`Py<T>`](../types.md#pyt) smart pointer also exposes these same six API methods, but needs a `Python` token as an additional first argument to prove the GIL is held.
15
+
For convenience the [`Py<T>`](../types.md#pyt) smart pointer also exposes these same six API methods, but needs a `Python` token as an additional first argument to prove the thread is attached to the Python interpreter.
16
16
17
17
The example below calls a Python function behind a `Py<PyAny>` reference:
0 commit comments