MCPcopy Create free account

hub / github.com/PyO3/pyo3 / functions

Functions4,885 in github.com/PyO3/pyo3

Functiontest_word_count_rust_parallel
(benchmark, contents)
examples/word-count/tests/test_word_count.py:35
Functiontest_word_count_rust_sequential
(benchmark, contents)
examples/word-count/tests/test_word_count.py:40
Functiontest_word_count_rust_sequential_twice_with_threads
(benchmark, contents)
examples/word-count/tests/test_word_count.py:60
Functiontest_wrap_pyfunction_forms
()
src/impl_/pyfunction.rs:138
Functiontest_write_unraisable
()
tests/test_exceptions.rs:107
Functiontest_zoneinfo_is_not_fixed_offset
()
src/conversions/jiff.rs:585
Functiontest_zoneinfo_is_not_fixed_offset
()
src/conversions/chrono.rs:668
Methodtext_signature_is_forbidden
~^ ERROR: `text_signature` cannot be used with magic method `__bool__`
tests/ui/invalid_proto_pymethods.rs:51
Methodtext_signature_on_call
()
tests/ui/invalid_pymethods.rs:62
Methodtext_signature_on_classattr
~^ ERROR: `text_signature` not allowed with `classattr`
tests/ui/invalid_pymethods.rs:78
Methodtext_signature_on_getter
~^ ERROR: `text_signature` not allowed with `getter`
tests/ui/invalid_pymethods.rs:68
Methodtext_signature_on_setter
~^ ERROR: `text_signature` not allowed with `setter`
tests/ui/invalid_pymethods.rs:73
Methodthrow
( &mut self, value: Bound<'_, PyAny>, _a: Option<Bound<'_, PyAny>>,
pytests/src/awaitable.rs:53
Methodthrow
(&self, exc: Py<PyAny>)
src/coroutine/cancel.rs:61
Methodthrow_callback
(&self)
src/coroutine/cancel.rs:52
Functiontime_with_fold
( py: Python<'py>, hour: u8, minute: u8, second: u8, microsecond: u32, tzinfo: Option<
pytests/src/datetime.rs:40
Methodto_array
(&self)
src/conversion.rs:425
Methodto_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
Functionto_from_complex
()
src/conversions/num_complex.rs:235
Methodto_list
(&self)
src/types/sequence.rs:311
Methodto_tokens
(&self, tokens: &mut TokenStream)
pyo3-macros-backend/src/utils.rs:178
Methodto_tokens
(&self, tokens: &mut TokenStream)
pyo3-macros-backend/src/pyfunction.rs:225
Methodto_tokens
(&self, tokens: &mut TokenStream)
pyo3-macros-backend/src/introspection.rs:629
Methodto_tokens
(&self, tokens: &mut TokenStream)
pyo3-macros-backend/src/attributes.rs:174
Methodto_tokens
(&self, tokens: &mut TokenStream)
pyo3-macros-backend/src/pyfunction/signature.rs:45
Methodto_tuple
(&self)
src/types/sequence.rs:320
Methodto_vec
(&self)
src/conversion.rs:421
Functiontoo_long_iterator
()
src/types/tuple.rs:1423
Functiontoo_short_iterator
()
src/types/tuple.rs:1434
Functiontoo_short_iterator
()
src/types/list.rs:1455
Functiontp_dealloc
Implementation of tp_dealloc for `#[pyclass]` types
src/impl_/pyclass.rs:1180
Methodtp_dealloc
(py: Python<'_>, slf: *mut ffi::PyObject)
src/pycell/impl_.rs:254
Functiontp_methods_receiver_type_checked_by_cpython
()
tests/test_methods.rs:53
Functiontp_new_impl
# SAFETY - `cls` must be the type object for `ClassT` (or a subclass)
src/impl_/pymethods.rs:718
Functiontp_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
Functiontp_traverse
( slf: *mut ffi::PyObject, visit: ffi::visitproc, arg: *mut c_void, )
src/impl_/pymethods.rs:352
Functiontrailing_optional
(x: i32, y: Option<i32>)
tests/test_pyfunction.rs:58
Functiontrailing_optional_required
(a: i32, b: Option<i32>, c: Option<i32>)
tests/test_text_signature.rs:150
Functiontraverse_cannot_be_hijacked
()
tests/test_gc.rs:442
Methodtraverse_dict
(&self, _visit: ffi::visitproc, _arg: *mut c_void)
src/impl_/pyclass.rs:93
Functiontraverse_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
Functiontraverse_panic
()
tests/test_gc.rs:388
Functiontraverse_partial
()
tests/test_gc.rs:354
Methodtraversed_and_hijacked
(&self)
tests/test_gc.rs:457
Functiontries_gil_in_traverse
()
tests/test_gc.rs:417
Functiontriple
(x: usize)
tests/test_declarative_module.rs:96
Methodtruediv_expects_one_argument
(&self)
tests/ui/invalid_proto_pymethods.rs:19
Methodtruediv_expects_one_argument_py
(&self, _py: Python<'_>)
tests/ui/invalid_proto_pymethods.rs:28
Methodtrusted
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
Methodtry_attach
(f: F)
src/marker.rs:444
Methodtry_attach
Variant of the above which will will return gracefully if the interpreter cannot be attached to.
src/internal/state.rs:87
Methodtry_borrow
(&self)
src/instance.rs:602
Methodtry_borrow_from_borrowed
( obj: Borrowed<'a, '_, T>, )
src/pyclass/guard.rs:104
Methodtry_borrow_mut_from_borrowed
( obj: Borrowed<'a, '_, T>, )
src/pyclass/guard.rs:633
Methodtry_from
(value: &Bound<'py, T>)
src/pycell.rs:518
Methodtry_from
(py_string: Bound<'_, PyString>)
src/pybacked.rs:111
Methodtry_from
(range: Bound<'py, PyRange>)
src/types/slice.rs:180
Methodtry_from
Creates a new Python `bytearray` object from another Python object that implements the buffer protocol.
src/types/bytearray.rs:333
Methodtry_from
Creates a new Python `memoryview` object from another Python object that implements the buffer protocol.
src/types/memoryview.rs:51
Methodtry_from
(value: PyBytesWriter<'py>)
src/types/bytes/writer.rs:128
Methodtry_from
(value: &'a Bound<'py, T>)
src/pyclass/guard.rs:360
Methodtry_from_class_object
( obj: &'a <T as PyClassImpl>::Layout, )
src/pyclass/guard.rs:110
Methodtry_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
Methodtry_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
Methodtry_incref
(obj: NonNull<ffi::PyObject>)
src/instance.rs:2133
Functiontry_zoned
( year: i16, month: i8, day: i8, hour: i8, min: i8
src/conversions/jiff.rs:1091
Methodtuple
Build a tuple
pyo3-macros-backend/src/py_expr.rs:172
Functiontuple_class_with_new
()
tests/test_class_new.rs:78
Functiontuple_coroutine
()
tests/test_coroutine.rs:139
Functiontuple_get_borrowed_item
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_tuple.rs:57
Functiontuple_get_borrowed_item_unchecked
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_tuple.rs:74
Functiontuple_get_item
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_tuple.rs:29
Functiontuple_get_item_unchecked
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_tuple.rs:42
Functiontuple_into_pyobject
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_tuple.rs:116
Functiontuple_new
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_tuple.rs:22
Functiontuple_new_list
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_tuple.rs:100
Functiontuple_nth
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_tuple.rs:126
Functiontuple_nth_back
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_tuple.rs:139
Functiontuple_struct_getter_setter
()
tests/test_getter_setter.rs:178
Functiontuple_to_list
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_tuple.rs:108
Methodtype_check
(object: &Bound<'_, PyAny>)
src/type_object.rs:116
Methodtype_check
(object: &Bound<'_, PyAny>)
src/types/weakref/proxy.rs:33
Methodtype_check
(object: &Bound<'_, PyAny>)
src/types/weakref/anyref.rs:31
Methodtype_method
()
tests/test_class_basics.rs:139
Methodtype_object
(py: Python<'_>)
src/type_object.rs:54
Functiontype_object_is_visited_once_when_pyclasses_subtype_each_other
()
tests/test_gc.rs:792
Methodtype_object_raw
(_py: Python<'_>)
src/types/notimplemented.rs:34
Methodtype_object_raw
(py: Python<'_>)
src/types/sequence.rs:30
Methodtype_object_raw
(_py: Python<'_>)
src/types/none.rs:34
Methodtype_object_raw
(py: Python<'_>)
src/types/mapping.rs:32
Methodtype_object_raw
(_py: Python<'_>)
src/types/ellipsis.rs:34
Functiontyping_is_only_chosen_when_it_has_disjoint_base
()
src/impl_/introspection.rs:252
Methodtyping_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
Functiontypos
(session: nox.Session)
noxfile.py:286
Methodtzname
(&self, _dt: Option<&Bound<'_, PyDateTime>>)
pytests/src/datetime.rs:201
Functionucs4
()
src/ffi/tests.rs:222
Functionunary_arithmetic
()
tests/test_arithmetics.rs:48
Functionunbound_watcher_attaches_on_drop_from_another_thread
()
src/types/context.rs:714
Functionunbound_watcher_can_be_cleared_with_an_attachment
()
src/types/context.rs:733
Functionunbound_watcher_can_be_rebound
()
src/types/context.rs:751
← previousnext →4,701–4,800 of 4,885, ranked by callers