MCPcopy Create free account

hub / github.com/PyO3/pyo3 / functions

Functions4,885 in github.com/PyO3/pyo3

Functionreplace_explicit
(m)
noxfile.py:1061
Methodreport
(&self)
pyo3-build-config/src/errors.rs:45
Functionrequire_feature_enabled
Generic function to configure a revision to require a given feature to be enabled or disabled (`custom_comments` requires function pointers).
tests/test_compile_error.rs:201
Functionrequired_optional_class
(arg: Option<&MyClass>)
tests/test_pyfunction.rs:101
Functionrequired_optional_str
(arg: Option<&str>)
tests/test_pyfunction.rs:80
Methodrestore
(self, py: Python<'_>)
src/err/err_state.rs:60
Functionrestore_error_callback
(py: Python<'_>, _event: ContextEvent<'_, '_>)
src/types/context.rs:573
Functionresult_conversion_function
()
tests/test_various.rs:196
Functionreturn_custom_class
Checks that we can use return a custom class in arbitrary function and use those functions both in rust and python
tests/test_various.rs:52
Functionreturn_enum
()
tests/test_enum.rs:69
Functionreturn_my_value_error
(py: Python<'py>)
pytests/src/exception.rs:45
Functionreturn_pyerr
()
pytests/src/exception.rs:52
Functionreturn_tuple
()
tests/test_coroutine.rs:134
Functionreturn_value_borrows_from_arguments
( py: Python<'py>, key: &'py Key, value: &'py Value, )
tests/test_pyfunction.rs:614
Functionreturn_value_error
(py: Python<'py>)
pytests/src/exception.rs:38
Functionreturns_unit
()
tests/test_coroutine.rs:44
Functionreverse_arith
()
tests/test_arithmetics.rs:771
Functionrhs_arithmetic
()
tests/test_arithmetics.rs:367
Functionrich_comparisons
()
tests/test_arithmetics.rs:572
Functionrich_comparisons_python_3_type_error
()
tests/test_arithmetics.rs:605
Functionruff
(session: nox.Session)
noxfile.py:269
Functionrumdl
Run rumdl to check markdown formatting in the guide. Can also run with uv directly, e.g. `uv run rumdl check guide`.
noxfile.py:275
Functionrun
()
pytests/tests/test_pyfunctions.py:105
Functionrun_closure
( capsule_ptr: *mut ffi::PyObject, args: *mut ffi::PyObject, kwargs: *mut ffi::PyObject, )
src/types/function.rs:146
Functionrun_rust_sequential_twice
( executor: ThreadPoolExecutor, contents: str, needle: str )
examples/word-count/tests/test_word_count.py:50
Functionruntime_is_disjoint_base
The condition `mypy.stubtest` checks, from the runtime type objects.
src/impl_/introspection.rs:201
Functionrust_backed_bytes_into_pyobject
()
src/pybacked.rs:537
Functionrust_fib
()
src/conversions/num_bigint.rs:534
Functionrust_name_of_renamed
()
pytests/src/pyfunctions.rs:14
Functionrustfmt
(session: nox.Session)
noxfile.py:262
Functionrustpython_default_abi_sets_free_threaded_flag
()
pyo3-build-config/src/impl_.rs:4730
Functionrustpython_default_config_roundtrip
()
pyo3-build-config/src/impl_.rs:4741
Functionsearch
(contents: &str, needle: &str)
examples/word-count/src/lib.rs:6
Functionsearch_py
(contents: str, needle: str)
examples/word-count/word_count/__init__.py:11
Functionsearch_sequential_detached
(py: Python<'_>, contents: &str, needle: &str)
examples/word-count/src/lib.rs:20
Methodsend
(&mut self, py: Python<'_>, _value: &Bound<'_, PyAny>)
src/coroutine.rs:148
Functionsend_generator
()
src/types/iterator.rs:265
Functionsequence
()
tests/test_proto_methods.rs:375
Methodsequence_extractor
( _obj: Borrowed<'_, 'py, PyAny>, _: private::Token, )
src/conversion.rs:412
Methodsequence_extractor
( obj: Borrowed<'_, 'py, PyAny>, _: crate::conversion::private::Token, )
src/conversions/std/num.rs:262
Functionsequence_from_list
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_list.rs:87
Functionsequence_from_tuple
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_tuple.rs:92
Functionsequence_is_not_mapping
()
tests/test_sequence.rs:376
Functionsequence_length
()
tests/test_sequence.rs:395
Functionsequence_operators_use_distinct_slots
()
tests/test_sequence.rs:279
Functionsequential_exec
(module: *mut PyObject)
pyo3-ffi/examples/sequential/src/module.rs:70
Functionsequential_free
(module: *mut c_void)
pyo3-ffi/examples/sequential/src/module.rs:105
Functionsequential_traverse
( module: *mut PyObject, visit: visitproc, arg: *mut c_void, )
pyo3-ffi/examples/sequential/src/module.rs:84
Methodserialize
(&self, serializer: S)
src/conversions/serde.rs:23
Methodset
(&mut self, _v: i32)
src/tests/hygiene/pymethods.rs:406
Functionset_attr
()
pytests/tests/test_pyclasses.py:203
Methodset_attr
(&mut self, value: usize)
pytests/src/pyclasses.rs:250
Functionset_coverage_env
For use in GitHub Actions to set coverage environment variables.
noxfile.py:222
Methodset_data
(&mut self, value: i32)
tests/test_getter_setter.rs:29
Methodset_field
(&mut self, field: Option<u32>)
tests/test_getter_setter.rs:300
Methodset_from_any
(&mut self, value: &Bound<'_, PyAny>)
tests/test_getter_setter.rs:50
Methodset_from_len
(&mut self, #[pyo3(from_py_with = extract_len)] value: i32)
tests/test_getter_setter.rs:45
Methodset_item
(&self, i: usize, item: I)
src/types/sequence.rs:233
Functionset_msrv_package_versions
(session: nox.Session)
noxfile.py:1314
Functionset_new
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_set.rs:10
Methodset_num
(mut slf: PyRefMut<'_, Self>, value: i32)
tests/test_getter_setter.rs:145
Methodset_other
(&self, mut other: PyRefMut<'_, MutRefArg>)
tests/test_various.rs:21
Methodset_to_list
(&self, set: &Bound<'py, PySet>)
tests/test_methods.rs:819
Methodset_traceback
Set the traceback associated with the exception, pass `None` to clear it.
src/err/mod.rs:268
Functionset_typeerror
()
src/err/mod.rs:829
Methodset_unwrapped
(&mut self, value: i32)
tests/test_getter_setter.rs:40
Methodset_value
(&mut self, value: i32)
src/tests/hygiene/pymethods.rs:512
Methodset_value
(&mut self, value: i32)
tests/test_methods.rs:1355
Methodset_value
(&mut self, new_value: i32)
tests/test_coroutine.rs:352
Functionset_valueerror
()
src/err/mod.rs:800
Functionsetdelitem
()
tests/test_proto_methods.rs:561
Functionsetitem
()
tests/test_proto_methods.rs:500
Methodsetter
( slf: *mut ffi::PyObject, value: *mut ffi::PyObject,
src/pyclass/create_type_object.rs:679
Methodsetter_with_no_arg
(&mut self, _py: Python<'_>)
tests/ui/invalid_property_args.rs:25
Methodsetter_with_too_many_args
(&mut self, _py: Python<'_>, _foo: u32, _bar: u32)
tests/ui/invalid_property_args.rs:32
Methodsetter_without_receiver
()
tests/ui/invalid_pymethods.rs:55
Functionsextuple
(x: usize)
tests/test_declarative_module.rs:367
Functionshould_not_work
()
tests/ui/invalid_result_conversion.rs:26
Methodsignature_attribute_allowed
(&self)
pyo3-macros-backend/src/method.rs:257
Functionsignature_contains_py
~^ ERROR: arguments of type `Python` must not be part of the signature
tests/ui/invalid_pyfunction_signatures.rs:58
Methodsignature_is_forbidden
~^ ERROR: `signature` cannot be used with magic method `__bool__`
tests/ui/invalid_proto_pymethods.rs:42
Methodsignature_on_classattr
~^ ERROR: `signature` not allowed with `classattr`
tests/ui/invalid_pymethods.rs:105
Methodsignature_on_getter
~^ ERROR: `signature` not allowed with `getter`
tests/ui/invalid_pymethods.rs:95
Methodsignature_on_setter
~^ ERROR: `signature` not allowed with `setter`
tests/ui/invalid_pymethods.rs:100
Functionsimple
( a: Any<'py>, b: Option<Any<'py>>, c: Option<Any<'py>>, )
pytests/src/pyfunctions.rs:23
Functionsimple_args
( a: Any<'py>, b: Option<Any<'py>>, args: Tuple<'py>, c: Option<Any<'py>>, )
pytests/src/pyfunctions.rs:32
Functionsimple_args_kwargs
( a: Any<'py>, b: Option<Any<'py>>, args: Tuple<'py>, c: Option<Any<'py>>, kwargs: Option<
pytests/src/pyfunctions.rs:57
Functionsimple_kwargs
( a: Any<'py>, b: Option<Any<'py>>, c: Option<Any<'py>>, kwargs: Option<Dict<'py>>, )
pytests/src/pyfunctions.rs:42
Methodsize_hint
(&self)
src/types/dict.rs:552
Methodsize_hint
(&self)
src/types/frozendict.rs:302
Methodsize_hint
(&self)
src/types/tuple.rs:415
Methodsize_hint
(&self)
src/conversions/num_bigint.rs:114
Methodsize_hint
(&self)
src/conversions/std/num.rs:512
Functionsleep_0
()
tests/test_coroutine.rs:95
Functionsleep_0_like_coroutine
()
tests/test_coroutine.rs:93
Functionsleep_coroutine
()
tests/test_coroutine.rs:125
Functionsleep_loop
(#[pyo3(cancel_handle)] cancel: CancelHandle)
tests/test_coroutine.rs:215
Methodsome_field
(&self)
tests/test_frompyobject.rs:343
Functionsome_name
(m: &Bound<'_, PyModule>)
tests/test_module.rs:227
Functionsome_wrap_arguments
( a: Option<u8>, b: Option<u8>, c: Option<u8>, d: Option<u8>, )
tests/test_pyfunction.rs:646
← previousnext →3,401–3,500 of 4,885, ranked by callers