Skip to content

docs: update docstring on Python for Bound API#4274

Merged
davidhewitt merged 1 commit intoPyO3:mainfrom
davidhewitt:python-docs-tweak
Jun 21, 2024
Merged

docs: update docstring on Python for Bound API#4274
davidhewitt merged 1 commit intoPyO3:mainfrom
davidhewitt:python-docs-tweak

Conversation

@davidhewitt
Copy link
Member

Updates the docs on the Python type to remove mentions to &PyAny, and remove some dead links.

I also adjusted the "order of preference" to suggest .py() where possible instead of py: Python<'py> in function arguments.

@davidhewitt davidhewitt enabled auto-merge June 21, 2024 11:16
@davidhewitt davidhewitt added this pull request to the merge queue Jun 21, 2024
Merged via the queue into PyO3:main with commit 41fb957 Jun 21, 2024
@davidhewitt davidhewitt deleted the python-docs-tweak branch June 21, 2024 12:17
Michael-J-Ward added a commit to Michael-J-Ward/datafusion-python that referenced this pull request Jun 25, 2024
When available, using an already bound python token is zero-cost.

Python::with_gil carries a runtime check.

Ref: PyO3/pyo3#4274
andygrove pushed a commit to apache/datafusion-python that referenced this pull request Jun 26, 2024
* let pyo3 convert the StorageContexts argument in PySessionContext::register_object_store

* clean PySessionContext methods from_pylist and from_pydict

* clean PySessionContext metehods from_polars, from_pandas, from_arrow_table

* prefer bound Python token over  Python::with_gil

When available, using an already bound python token is zero-cost.

Python::with_gil carries a runtime check.

Ref: PyO3/pyo3#4274
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants