Skip to content

docs: update docstring on Python for Bound API #4274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 21, 2024

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy