Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PyO3/pyo3
/ functions
Functions
4,885 in github.com/PyO3/pyo3
⨍
Functions
4,885
◇
Types & classes
1,305
↳
Endpoints
2
Function
test_word_count_rust_parallel
(benchmark, contents)
examples/word-count/tests/test_word_count.py:35
Function
test_word_count_rust_sequential
(benchmark, contents)
examples/word-count/tests/test_word_count.py:40
Function
test_word_count_rust_sequential_twice_with_threads
(benchmark, contents)
examples/word-count/tests/test_word_count.py:60
Function
test_wrap_pyfunction_forms
()
src/impl_/pyfunction.rs:138
Function
test_write_unraisable
()
tests/test_exceptions.rs:107
Function
test_zoneinfo_is_not_fixed_offset
()
src/conversions/jiff.rs:585
Function
test_zoneinfo_is_not_fixed_offset
()
src/conversions/chrono.rs:668
Method
text_signature_is_forbidden
~^ ERROR: `text_signature` cannot be used with magic method `__bool__`
tests/ui/invalid_proto_pymethods.rs:51
Method
text_signature_on_call
()
tests/ui/invalid_pymethods.rs:62
Method
text_signature_on_classattr
~^ ERROR: `text_signature` not allowed with `classattr`
tests/ui/invalid_pymethods.rs:78
Method
text_signature_on_getter
~^ ERROR: `text_signature` not allowed with `getter`
tests/ui/invalid_pymethods.rs:68
Method
text_signature_on_setter
~^ ERROR: `text_signature` not allowed with `setter`
tests/ui/invalid_pymethods.rs:73
Method
throw
( &mut self, value: Bound<'_, PyAny>, _a: Option<Bound<'_, PyAny>>,
pytests/src/awaitable.rs:53
Method
throw
(&self, exc: Py<PyAny>)
src/coroutine/cancel.rs:61
Method
throw_callback
(&self)
src/coroutine/cancel.rs:52
Function
time_with_fold
( py: Python<'py>, hour: u8, minute: u8, second: u8, microsecond: u32, tzinfo: Option<
pytests/src/datetime.rs:40
Method
to_array
(&self)
src/conversion.rs:425
Method
to_fortran_vec
Copies the buffer elements to a newly allocated vector. If the buffer is multi-dimensional, the elements are written in Fortran-style order. Fails if
src/buffer.rs:434
Function
to_from_complex
()
src/conversions/num_complex.rs:235
Method
to_list
(&self)
src/types/sequence.rs:311
Method
to_tokens
(&self, tokens: &mut TokenStream)
pyo3-macros-backend/src/utils.rs:178
Method
to_tokens
(&self, tokens: &mut TokenStream)
pyo3-macros-backend/src/pyfunction.rs:225
Method
to_tokens
(&self, tokens: &mut TokenStream)
pyo3-macros-backend/src/introspection.rs:629
Method
to_tokens
(&self, tokens: &mut TokenStream)
pyo3-macros-backend/src/attributes.rs:174
Method
to_tokens
(&self, tokens: &mut TokenStream)
pyo3-macros-backend/src/pyfunction/signature.rs:45
Method
to_tuple
(&self)
src/types/sequence.rs:320
Method
to_vec
(&self)
src/conversion.rs:421
Function
too_long_iterator
()
src/types/tuple.rs:1423
Function
too_short_iterator
()
src/types/tuple.rs:1434
Function
too_short_iterator
()
src/types/list.rs:1455
Function
tp_dealloc
Implementation of tp_dealloc for `#[pyclass]` types
src/impl_/pyclass.rs:1180
Method
tp_dealloc
(py: Python<'_>, slf: *mut ffi::PyObject)
src/pycell/impl_.rs:254
Function
tp_methods_receiver_type_checked_by_cpython
()
tests/test_methods.rs:53
Function
tp_new_impl
# SAFETY - `cls` must be the type object for `ClassT` (or a subclass)
src/impl_/pymethods.rs:718
Function
tp_new_resolver
First step of machinery for resolving the type of `#[new]` return values, which is used to implement specialization for the various cases. Call `.res
src/internal/pyclass_init.rs:82
Function
tp_traverse
( slf: *mut ffi::PyObject, visit: ffi::visitproc, arg: *mut c_void, )
src/impl_/pymethods.rs:352
Function
trailing_optional
(x: i32, y: Option<i32>)
tests/test_pyfunction.rs:58
Function
trailing_optional_required
(a: i32, b: Option<i32>, c: Option<i32>)
tests/test_text_signature.rs:150
Function
traverse_cannot_be_hijacked
()
tests/test_gc.rs:442
Method
traverse_dict
(&self, _visit: ffi::visitproc, _arg: *mut c_void)
src/impl_/pyclass.rs:93
Function
traverse_impl
Visits the base type, the instance `__dict__` and the pyclass's own data, stopping as soon as one of them returns non-zero. # Safety - `slf` must be
src/impl_/pymethods.rs:408
Function
traverse_panic
()
tests/test_gc.rs:388
Function
traverse_partial
()
tests/test_gc.rs:354
Method
traversed_and_hijacked
(&self)
tests/test_gc.rs:457
Function
tries_gil_in_traverse
()
tests/test_gc.rs:417
Function
triple
(x: usize)
tests/test_declarative_module.rs:96
Method
truediv_expects_one_argument
(&self)
tests/ui/invalid_proto_pymethods.rs:19
Method
truediv_expects_one_argument_py
(&self, _py: Python<'_>)
tests/ui/invalid_proto_pymethods.rs:28
Method
trusted
Using the trusted conversion incorrectly can lead to incorrect runtime behavior and memory safety issues, so this is marked `unsafe` and usage should
pyo3-macros-backend/src/method.rs:416
Method
try_attach
(f: F)
src/marker.rs:444
Method
try_attach
Variant of the above which will will return gracefully if the interpreter cannot be attached to.
src/internal/state.rs:87
Method
try_borrow
(&self)
src/instance.rs:602
Method
try_borrow_from_borrowed
( obj: Borrowed<'a, '_, T>, )
src/pyclass/guard.rs:104
Method
try_borrow_mut_from_borrowed
( obj: Borrowed<'a, '_, T>, )
src/pyclass/guard.rs:633
Method
try_from
(value: &Bound<'py, T>)
src/pycell.rs:518
Method
try_from
(py_string: Bound<'_, PyString>)
src/pybacked.rs:111
Method
try_from
(range: Bound<'py, PyRange>)
src/types/slice.rs:180
Method
try_from
Creates a new Python `bytearray` object from another Python object that implements the buffer protocol.
src/types/bytearray.rs:333
Method
try_from
Creates a new Python `memoryview` object from another Python object that implements the buffer protocol.
src/types/memoryview.rs:51
Method
try_from
(value: PyBytesWriter<'py>)
src/types/bytes/writer.rs:128
Method
try_from
(value: &'a Bound<'py, T>)
src/pyclass/guard.rs:360
Method
try_from_class_object
( obj: &'a <T as PyClassImpl>::Layout, )
src/pyclass/guard.rs:110
Method
try_from_class_object
Attempts to create a `PyClassTraverseGuard` from a raw pointer to a class object. If the Rust state cannot be safely traversed (e.g. unsendable or cu
src/pyclass/gc.rs:100
Method
try_from_env_vars_host_target
Creates a new cross compile config struct from PyO3 environment variables and the build environment when cross compilation mode is detected. Returns
pyo3-build-config/src/impl_.rs:1717
Method
try_incref
(obj: NonNull<ffi::PyObject>)
src/instance.rs:2133
Function
try_zoned
( year: i16, month: i8, day: i8, hour: i8, min: i8
src/conversions/jiff.rs:1091
Method
tuple
Build a tuple
pyo3-macros-backend/src/py_expr.rs:172
Function
tuple_class_with_new
()
tests/test_class_new.rs:78
Function
tuple_coroutine
()
tests/test_coroutine.rs:139
Function
tuple_get_borrowed_item
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_tuple.rs:57
Function
tuple_get_borrowed_item_unchecked
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_tuple.rs:74
Function
tuple_get_item
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_tuple.rs:29
Function
tuple_get_item_unchecked
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_tuple.rs:42
Function
tuple_into_pyobject
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_tuple.rs:116
Function
tuple_new
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_tuple.rs:22
Function
tuple_new_list
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_tuple.rs:100
Function
tuple_nth
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_tuple.rs:126
Function
tuple_nth_back
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_tuple.rs:139
Function
tuple_struct_getter_setter
()
tests/test_getter_setter.rs:178
Function
tuple_to_list
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_tuple.rs:108
Method
type_check
(object: &Bound<'_, PyAny>)
src/type_object.rs:116
Method
type_check
(object: &Bound<'_, PyAny>)
src/types/weakref/proxy.rs:33
Method
type_check
(object: &Bound<'_, PyAny>)
src/types/weakref/anyref.rs:31
Method
type_method
()
tests/test_class_basics.rs:139
Method
type_object
(py: Python<'_>)
src/type_object.rs:54
Function
type_object_is_visited_once_when_pyclasses_subtype_each_other
()
tests/test_gc.rs:792
Method
type_object_raw
(_py: Python<'_>)
src/types/notimplemented.rs:34
Method
type_object_raw
(py: Python<'_>)
src/types/sequence.rs:30
Method
type_object_raw
(_py: Python<'_>)
src/types/none.rs:34
Method
type_object_raw
(py: Python<'_>)
src/types/mapping.rs:32
Method
type_object_raw
(_py: Python<'_>)
src/types/ellipsis.rs:34
Function
typing_is_only_chosen_when_it_has_disjoint_base
()
src/impl_/introspection.rs:252
Method
typing_or_extensions_if_less
The `typing` module, or `typing_extensions` when targeting a Python older than `3.{version_3_x}` The choice is made by the PyO3 crate, which knows th
pyo3-macros-backend/src/py_expr.rs:214
Function
typos
(session: nox.Session)
noxfile.py:286
Method
tzname
(&self, _dt: Option<&Bound<'_, PyDateTime>>)
pytests/src/datetime.rs:201
Function
ucs4
()
src/ffi/tests.rs:222
Function
unary_arithmetic
()
tests/test_arithmetics.rs:48
Function
unbound_watcher_attaches_on_drop_from_another_thread
()
src/types/context.rs:714
Function
unbound_watcher_can_be_cleared_with_an_attachment
()
src/types/context.rs:733
Function
unbound_watcher_can_be_rebound
()
src/types/context.rs:751
← previous
next →
4,701–4,800 of 4,885, ranked by callers