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
Method
__rdivmod__
(&self, _other: &Self)
src/tests/hygiene/pymethods.rs:225
Method
__reduce__
( slf: &Bound<'py, Self>, py: Python<'py>, )
tests/test_various.rs:130
Method
__releasebuffer__
(&self, view: *mut ffi::Py_buffer)
tests/test_buffer_protocol.rs:35
Method
__repeat__
(&self, count: isize)
tests/test_sequence.rs:83
Method
__repr__
(&self)
pytests/src/pyclasses.rs:320
Method
__repr__
(self)
pytests/tests/test_misc.py:95
Method
__repr__
///////////////// Basic customization /////////////////
src/tests/hygiene/pymethods.rs:15
Method
__repr__
(&self)
tests/test_proto_methods.rs:52
Method
__repr__
(&self)
tests/test_arithmetics.rs:21
Method
__repr__
(&self)
tests/test_default_impls.rs:34
Method
__reversed__
( slf: crate::pycell::PyRef<'_, Self>, py: crate::Python<'_>, )
src/tests/hygiene/pymethods.rs:134
Method
__rfloordiv__
(&self, _other: &Self)
src/tests/hygiene/pymethods.rs:217
Method
__rfloordiv__
(&self, other: &Bound<'_, PyAny>)
tests/test_arithmetics.rs:490
Method
__richcmp__
(&self, other: &Self, op: CompareOp)
pytests/src/pyclasses.rs:328
Method
__richcmp__
(&self, other: &Self, op: CompareOp)
pytests/src/comparisons.rs:96
Method
__richcmp__
(&self, other: &Self, op: CompareOp)
pyo3-benches/benches/bench_comparisons.rs:41
Method
__richcmp__
(&self, other: &Bound<'_, PyAny>, op: CompareOp)
tests/test_arithmetics.rs:533
Method
__richcmp__
(&self, _other: &Self, _op: CompareOp)
tests/ui/invalid_proto_pymethods.rs:68
Method
__richcmp__
( &self, _py: Python, _other: Bound<'_, PyAny>, _op: pyo3::pyclass::CompareOp,
tests/ui/invalid_pyclass_args.rs:65
Method
__rlshift__
(&self, other: &Self)
src/tests/hygiene/pymethods.rs:233
Method
__rlshift__
(&self, other: &Bound<'_, PyAny>)
tests/test_arithmetics.rs:341
Method
__rmatmul__
(&self, other: &Bound<'_, PyAny>)
tests/test_arithmetics.rs:482
Method
__rmod__
(&self, _other: &Self)
src/tests/hygiene/pymethods.rs:221
Method
__rmul__
(&self, other: &Self)
src/tests/hygiene/pymethods.rs:209
Method
__rmul__
(&self, other: &Bound<'_, PyAny>)
tests/test_arithmetics.rs:337
Method
__ror__
(&self, other: &Self)
src/tests/hygiene/pymethods.rs:249
Method
__ror__
(&self, other: &Bound<'_, PyAny>)
tests/test_arithmetics.rs:357
Method
__round__
(&self, ndigits: ::core::option::Option<u32>)
src/tests/hygiene/pymethods.rs:313
Method
__round__
(&self, _ndigits: Option<u32>)
tests/test_arithmetics.rs:42
Method
__rpow__
(&self, _other: &Self, modulo: ::core::option::Option<i32>)
src/tests/hygiene/pymethods.rs:229
Method
__rpow__
(&self, other: &Bound<'_, PyAny>, _mod: Option<&Bound<'_, PyAny>>)
tests/test_arithmetics.rs:361
Method
__rrshift__
(&self, other: &Self)
src/tests/hygiene/pymethods.rs:237
Method
__rrshift__
(&self, other: &Bound<'_, PyAny>)
tests/test_arithmetics.rs:345
Method
__rrsub__
(&self, other: &Self)
src/tests/hygiene/pymethods.rs:205
Method
__rshift__
(&self, other: &Self)
pytests/src/pyclasses.rs:368
Method
__rshift__
(&self, other: &Self)
src/tests/hygiene/pymethods.rs:185
Method
__rshift__
(&self, rhs: &Bound<'_, PyAny>)
tests/test_arithmetics.rs:244
Method
__rsub__
( slf: PyClassGuard<'a, Self>, mut other: PyClassGuardMut<'a, Self>, )
src/pyclass/guard.rs:1055
Method
__rsub__
(&self, other: &Bound<'_, PyAny>)
tests/test_arithmetics.rs:333
Method
__rtruediv__
(&self, _other: &Self)
src/tests/hygiene/pymethods.rs:213
Method
__rtruediv__
(&self, other: &Bound<'_, PyAny>)
tests/test_arithmetics.rs:486
Method
__rxor__
(&self, other: &Self)
src/tests/hygiene/pymethods.rs:245
Method
__rxor__
(&self, other: &Bound<'_, PyAny>)
tests/test_arithmetics.rs:353
Method
__set__
( &self, instance: &crate::Bound<'_, crate::PyAny>, owner: &crate::Bound<'_, crate::Py
src/tests/hygiene/pymethods.rs:94
Method
__set__
Allow assigning a new counter to the descriptor, copying the count across
tests/test_proto_methods.rs:884
Method
__set_name__
( &self, owner: &crate::Bound<'_, crate::PyAny>, name: &crate::Bound<'_, crate::PyAny>
src/tests/hygiene/pymethods.rs:103
Method
__setattr__
(&mut self, name: ::alloc::string::String, value: ::alloc::string::String)
src/tests/hygiene/pymethods.rs:71
Method
__setattr__
(&mut self, attr: &str, value: &Bound<'_, PyAny>)
tests/test_proto_methods.rs:30
Method
__setitem__
(&self, key: u32, value: u32)
src/tests/hygiene/pymethods.rs:122
Method
__setitem__
(&self, key: &Bound<'py, PyAny>, value: &Bound<'py, PyAny>)
tests/test_proto_methods.rs:257
Method
__setitem__
(&mut self, key: String, value: usize)
tests/test_mapping.rs:50
Method
__setitem__
(&mut self, idx: isize, value: u8)
tests/test_sequence.rs:48
Method
__setitem__
(&self, idx: IntOrSlice, value: u32)
examples/getitem/src/lib.rs:61
Method
__str__
(&self)
pytests/src/pyclasses.rs:316
Method
__str__
(&self)
pytests/src/subclassing.rs:21
Method
__str__
(self)
pytests/tests/test_subclassing.py:5
Method
__str__
A basic __str__ implementation.
pyo3-benches/benches/bench_pyclass.rs:26
Method
__str__
(&self)
src/tests/hygiene/pymethods.rs:19
Method
__str__
(&self)
tests/test_proto_methods.rs:48
Method
__str__
(&self)
tests/ui/invalid_pyclass_args.rs:138
Method
__sub__
(&self, other: &Self)
pytests/src/pyclasses.rs:336
Method
__sub__
(&self, other: &Self)
src/tests/hygiene/pymethods.rs:153
Method
__sub__
(&self, rhs: &Bound<'_, PyAny>)
tests/test_arithmetics.rs:212
Method
__traverse__
( &self, visit: crate::PyVisit<'_>, )
src/tests/hygiene/pymethods.rs:425
Method
__traverse__
(self, _this: &T, _visit: PyVisit<'_>)
src/impl_/pyclass/traverse.rs:17
Method
__traverse__
(&self, visit: PyVisit<'_>)
tests/test_gc.rs:177
Method
__traverse__
(_slf: PyRef<Self>, _visit: PyVisit)
tests/ui/traverse.rs:10
Method
__traverse__
~^ ERROR: __traverse__ cannot be used with #[pyo3(warn)]
tests/ui/invalid_pyfunction_warn.rs:50
Method
__traverse__
~^ ERROR: __traverse__ cannot be used with #[pyo3(warn)]
tests/ui/invalid_pymethods_warn.rs:10
Method
__truediv__
(&self, other: &Self)
pytests/src/pyclasses.rs:348
Method
__truediv__
(&self, _other: &Self)
src/tests/hygiene/pymethods.rs:161
Method
__truediv__
(&self, rhs: &Bound<'_, PyAny>)
tests/test_arithmetics.rs:224
Method
__trunc__
(&self)
src/tests/hygiene/pymethods.rs:317
Method
__xor__
(&self, other: &Self)
pytests/src/pyclasses.rs:384
Method
__xor__
(&self, other: &Self)
src/tests/hygiene/pymethods.rs:193
Method
__xor__
(&self, rhs: &Bound<'_, PyAny>)
tests/test_arithmetics.rs:252
Function
_call_clear
Calls an implementation of __clear__ for tp_clear
src/impl_/pymethods.rs:516
Function
_check
( *, env: dict[str, str], version: tuple[int, int] | None, free_threaded: bool )
noxfile.py:389
Function
_clippy_with_config
( *, env: dict[str, str], version: tuple[int, int] | None, free_threaded: bool )
noxfile.py:370
Function
_cstr_from_utf8_with_nul_checked
(s: &str)
pyo3-ffi/src/lib.rs:425
Function
_foo
( _data: Vec<i32>, // The from_py_with here looks a little odd, we just need some way
tests/test_methods.rs:1288
Function
_setuptools_rust_starter
(py: Python<'_>, m: &Bound<'_, PyModule>)
examples/setuptools-rust-starter/src/lib.rs:23
Method
a
()
tests/test_class_attributes.rs:30
Method
a_class_attr
~^ ERROR: #[classattr] cannot be used with #[pyo3(warn)]
tests/ui/invalid_pymethods_warn.rs:18
Method
a_foo
()
tests/test_class_attributes.rs:46
Method
a_foo_with_py
(py: Python<'_>)
tests/test_class_attributes.rs:51
Method
abi3
(&self)
pyo3-build-config/src/impl_.rs:310
Function
abi3_from_old_config_file
()
pyo3-build-config/src/impl_.rs:3032
Function
abi3_version_cannot_be_higher_than_interpreter
()
pyo3-build-config/src/impl_.rs:4143
Function
abi_builder_error_paths
()
pyo3-build-config/src/impl_.rs:3737
Method
abs
(&self)
src/types/complex.rs:256
Function
accepts_bool
(val: bool)
pytests/src/misc.rs:74
Function
accepts_no_arguments
( _slf: *mut ffi::PyObject, _args: *const *mut ffi::PyObject,
src/impl_/pymethods.rs:782
Function
access_dunder_dict
()
tests/test_class_basics.rs:460
Function
access_frozen_class_without_gil
()
tests/test_class_basics.rs:653
Method
add_class
(&self)
src/types/module.rs:524
Method
add_other
Checks that &Self works
tests/test_methods.rs:30
Method
add_pyref
(&self, other: PyRef<'_, MethodWithPyClassArg>)
tests/test_methods.rs:856
Function
add_python_framework_link_args
Adds linker arguments suitable for linking against the Python framework on macOS. This should be called from a build script. The following link flag
pyo3-build-config/src/lib.rs:111
Method
add_to_module
(&'static self, module: &Bound<'_, PyModule>)
src/impl_/pymodule.rs:529
← previous
next →
1,801–1,900 of 4,885, ranked by callers