MCPcopy Create free account

hub / github.com/PyO3/pyo3 / functions

Functions4,885 in github.com/PyO3/pyo3

↓ 2 callersFunctiondealloc
( slf: *mut ffi::PyObject, f: for<'py> unsafe fn(Python<'py>, *mut ffi::PyObject) -> (), )
src/impl_/trampoline.rs:273
↓ 2 callersMethodderef
(&self)
src/pybacked.rs:69
↓ 2 callersMethoddoc
(&self)
pyo3-macros-backend/src/pymethod.rs:1099
↓ 2 callersFunctiondocs
(session: nox.Session, nightly: bool = False, internal: bool = False)
noxfile.py:707
↓ 2 callersFunctiondrop_deferred_references
(py: Python<'_>)
src/internal/state.rs:276
↓ 2 callersMethoddrop_ref
(self, py: Python<'_>)
src/instance.rs:1851
↓ 2 callersFunctionensure_no_error
(py: Python<'_>)
src/types/capsule.rs:677
↓ 2 callersMethodensure_no_missing_required_keyword_arguments
( &self, output: &[Option<PyArg<'_>>], )
src/impl_/extract_argument.rs:830
↓ 2 callersMethodensure_no_missing_required_positional_arguments
( &self, output: &[Option<PyArg<'_>>], positional_args_provided: usize, )
src/impl_/extract_argument.rs:814
↓ 2 callersMethodensure_threadsafe
(&self)
src/pycell/impl_.rs:250
↓ 2 callersMethodeq
(&self, other: O)
src/types/any.rs:999
↓ 2 callersFunctionescape
(bytes: &[u8])
pyo3-build-config/src/impl_.rs:2738
↓ 2 callersFunctionexact_stable_abi_version
(version: Option<StableAbiVersion>)
pyo3-build-config/src/impl_.rs:2335
↓ 2 callersMethodextract
(obj: Borrowed<'_, '_, PyAny>)
src/conversions/bigdecimal.rs:86
↓ 2 callersMethodextract
(obj: Borrowed<'_, 'py, PyAny>)
src/conversions/smallvec.rs:83
↓ 2 callersMethodextract
(obj: Borrowed<'a, 'py, PyAny>)
src/conversions/bytes.rs:86
↓ 2 callersMethodextract
(obj: Borrowed<'_, '_, PyAny>)
src/conversions/std/ipaddr.rs:21
↓ 2 callersMethodextract
(obj: Borrowed<'a, '_, PyAny>)
src/conversions/std/cstring.rs:97
↓ 2 callersMethodextract
(ob: Borrowed<'_, 'py, PyAny>)
src/conversions/std/set.rs:65
↓ 2 callersMethodextract
(obj: Borrowed<'a, 'py, PyAny>, _: &'_ mut ())
src/impl_/extract_argument.rs:93
↓ 2 callersFunctionextract_argument
The standard implementation of how PyO3 extracts a `#[pyfunction]` or `#[pymethod]` function argument.
src/impl_/extract_argument.rs:355
↓ 2 callersMethodextract_error_mode
(mut self, extract_error_mode: ExtractErrorMode)
pyo3-macros-backend/src/pymethod.rs:1482
↓ 2 callersFunctionfailed_to_extract_struct_field
( py: Python<'_>, inner_err: PyErr, struct_name: &str, field_name: &str, )
src/impl_/frompyobject.rs:83
↓ 2 callersFunctionfailed_to_extract_tuple_struct_field
( py: Python<'_>, inner_err: PyErr, struct_name: &str, index: usize, )
src/impl_/frompyobject.rs:133
↓ 2 callersFunctionfield_python_name
( field: &Field, name_attr: Option<&NameAttribute>, renaming_rule: Option<RenamingRule>, )
pyo3-macros-backend/src/pymethod.rs:2011
↓ 2 callersMethodfinalize
Finish building the set and take ownership of its current value
src/types/frozenset.rs:48
↓ 2 callersFunctionfind_all_sysconfigdata
Finds `_sysconfigdata*.py` files for detected Python interpreters. From the python source for `_sysconfigdata*.py` is always going to be located at `
pyo3-build-config/src/impl_.rs:2191
↓ 2 callersFunctionfind_interpreter
Attempts to locate a python interpreter. Locations are checked in the order listed: 1. If `PYO3_PYTHON` is set, this interpreter is used. 2. If in a
pyo3-build-config/src/impl_.rs:2646
↓ 2 callersFunctionfind_sysconfigdata
Finds the sysconfigdata file when the target Python library directory is set. Returns `None` if the library directory is not available, and a runtime
pyo3-build-config/src/impl_.rs:2127
↓ 2 callersMethodfold
(mut self, init: B, mut f: F)
src/types/dict.rs:567
↓ 2 callersMethodfold
(mut self, init: B, mut f: F)
src/types/list.rs:640
↓ 2 callersMethodformat
(&self)
src/buffer.rs:731
↓ 2 callersFunctionfrom_py_with
Alternative to [`extract_argument`] used when the argument has a `#[pyo3(from_py_with)]` annotation.
src/impl_/extract_argument.rs:408
↓ 2 callersFunctionfunction_stubs
(function: &Function, imports: &Imports, class_name: Option<&str>)
pyo3-introspection/src/stubs.rs:228
↓ 2 callersFunctiongen_py_const
(cls: &syn::Type, spec: &ConstSpec, ctx: &Ctx)
pyo3-macros-backend/src/pyimpl.rs:249
↓ 2 callersFunctiongenerate_method_body
( cls: &syn::Type, spec: &FnSpec<'_>, calling_convention: &SlotCallingConvention, extract_erro
pyo3-macros-backend/src/pymethod.rs:1568
↓ 2 callersFunctionget_bindgen_name
(name: &str, names: &HashSet<String>)
pyo3-ffi-check/macro/src/lib.rs:113
↓ 2 callersMethodget_borrowed_item
(&'a self, index: usize)
src/types/tuple.rs:299
↓ 2 callersMethodget_contents_ptr
(&self)
src/pycell/impl_.rs:584
↓ 2 callersFunctionget_decimal_cls
(py: Python<'_>)
src/conversions/bigdecimal.rs:70
↓ 2 callersFunctionget_host_interpreter
Locates and extracts the build host Python interpreter configuration. Lowers the configured Python version to `abi3_version` or `abi3t_version` if re
pyo3-build-config/src/impl_.rs:2678
↓ 2 callersMethodget_ident
(&self)
pyo3-macros-backend/src/pyclass.rs:777
↓ 2 callersMethodget_item
(&self, key: K)
src/types/dict.rs:252
↓ 2 callersMethodget_item
(&self, index: usize)
src/types/tuple.rs:295
↓ 2 callersMethodget_item
Gets the list item at the specified index. # Example ``` use pyo3::{prelude::*, types::PyList}; Python::attach(|py| { let list = PyList::new(py, [2, 3
src/types/list.rs:290
↓ 2 callersMethodget_methoddef
Return a `PyMethodDef` constructor for this function, matching the selected calling convention.
pyo3-macros-backend/src/method.rs:1080
↓ 2 callersMethodget_ptr
(&self)
src/pycell/impl_.rs:513
↓ 2 callersMethodget_python_name
(&self, args: &PyClassArgs)
pyo3-macros-backend/src/pyclass.rs:759
↓ 2 callersMethodget_slice
Takes the slice `self[low:high]` and returns it as a new list. Indices must be nonnegative, and out-of-range indices are clipped to `self.len()`.
src/types/list.rs:324
↓ 2 callersFunctionget_slot
Gets a slot from a raw FFI pointer. Safety: - `ty` must be a valid non-null pointer to a `PyTypeObject`. - The Python runtime must be initialized
src/internal/get_slot.rs:49
↓ 2 callersFunctionget_uuid_cls
(py: Python<'_>)
src/conversions/uuid.rs:81
↓ 2 callersMethodgetattr_opt
(&self, attr_name: N)
src/types/any.rs:867
↓ 2 callersMethodgt
(&self, other: O)
src/types/any.rs:1015
↓ 2 callersFunctionhas_attribute
(attrs: &[syn::Attribute], ident: &str)
pyo3-macros-backend/src/utils.rs:270
↓ 2 callersFunctionimpl_arg_params
( spec: &FnSpec<'_>, self_: Option<&syn::Type>, fastcall: bool, holders: &mut Holders, ctx
pyo3-macros-backend/src/params.rs:56
↓ 2 callersFunctionimpl_complex_enum_variant_match_args
( ctx @ Ctx { pyo3_path, .. }: &Ctx, variant_cls_type: &syn::Type, field_names: &[Ident], )
pyo3-macros-backend/src/pyclass.rs:1395
↓ 2 callersFunctionimpl_complex_enum_variant_qualname
( enum_name: &syn::Ident, variant_ident: &syn::Ident, variant_cls_type: &syn::Type, ctx: &Ctx,
pyo3-macros-backend/src/pyclass.rs:1754
↓ 2 callersMethodimpl_into_py
(&self, ctx: &Ctx)
pyo3-macros-backend/src/pyclass.rs:2763
↓ 2 callersFunctionimpl_py_method_def
( cls: &syn::Type, spec: &FnSpec<'_>, doc: Option<&PythonDoc>, ctx: &Ctx, )
pyo3-macros-backend/src/pymethod.rs:408
↓ 2 callersFunctionimpl_py_setter_def
Used here for PropertyType::Function, used in pyclass for descriptors.
pyo3-macros-backend/src/pymethod.rs:678
↓ 2 callersFunctionimpl_regular_arg_param
Re option_pos: The option slice doesn't contain the py: Python argument, so the argument index and the index in option diverge when using py: Python
pyo3-macros-backend/src/params.rs:246
↓ 2 callersFunctionimpl_wrap_pyfunction
Generates python wrapper over a function that allows adding it to a python module as a python function
pyo3-macros-backend/src/pyfunction.rs:339
↓ 2 callersFunctionincrement_attach_count
()
src/internal/state.rs:379
↓ 2 callersMethodinner
(any: &Bound<'_, PyAny>, other: Borrowed<'_, '_, PyAny>)
src/types/any.rs:914
↓ 2 callersFunctionint_n_bits
(long: &Bound<'_, PyInt>)
src/conversions/num_bigint.rs:520
↓ 2 callersFunctionintern
(py: crate::Python<'_>)
src/tests/hygiene/misc.rs:29
↓ 2 callersMethodinto_inner
(self)
src/platform/sync.rs:97
↓ 2 callersMethodinto_inner
Consumes this mutex, returning the underlying data. # Errors If another user of this mutex panicked while holding the mutex, then this call will ret
src/sync/mutex.rs:201
↓ 2 callersMethodinto_iter
(self)
src/types/dict.rs:713
↓ 2 callersMethodinto_iter
(self)
src/types/tuple.rs:533
↓ 2 callersMethodinto_pyobject
(self, py: Python<'py>)
src/pybacked.rs:157
↓ 2 callersMethodinto_pyobject
(self, py: crate::Python<'py>)
src/pyclass/guard.rs:329
↓ 2 callersMethodinto_pyobject
(self, py: Python<'py>)
src/conversions/smallvec.rs:46
↓ 2 callersMethodinto_pyobject
(self, py: Python<'py>)
src/conversions/hashbrown.rs:47
↓ 2 callersMethodinto_pyobject
(self, py: Python<'py>)
src/conversions/std/time.rs:60
↓ 2 callersMethodinto_pyobject
(self, py: Python<'py>)
src/conversions/std/path.rs:42
↓ 2 callersMethodinto_signature
(self)
pyo3-macros-backend/src/pyfunction/signature.rs:266
↓ 2 callersMethodinto_super
Gets a `PyClassGuard<T::BaseType>`. With the help of this method, you can get hold of instances of the super-superclass when needed. # Examples ```
src/pyclass/guard.rs:257
↓ 2 callersFunctionintrospection_symbol_version
(name: &str)
pyo3-introspection/src/introspection.rs:678
↓ 2 callersFunctioninvalid_sequence_length
(expected: usize, actual: usize)
src/conversions/std/array.rs:172
↓ 2 callersFunctionis_30bit_layout
(py: Python<'_>)
src/conversions/std/num.rs:368
↓ 2 callersFunctionis_forwarded_args
Return true if the argument list is simply (*args, **kwds).
pyo3-macros-backend/src/params.rs:49
↓ 2 callersMethodis_instance
(&self, ty: &Bound<'py, PyAny>)
src/types/any.rs:1257
↓ 2 callersFunctionis_runtime_3_10
(py: crate::Python<'_>)
src/internal/get_slot.rs:139
↓ 2 callersFunctionis_rust_nightly
()
noxfile.py:1863
↓ 2 callersMethodis_true
(&self)
src/types/boolobject.rs:73
↓ 2 callersMethoditem_size
(&self)
src/buffer.rs:663
↓ 2 callersMethoditer
(&self)
src/types/frozenset.rs:181
↓ 2 callersMethodkind
(&self)
pyo3-ffi/src/cpython/unicodeobject.rs:181
↓ 2 callersFunctionlazy_into_normalized_ffi_tuple
( py: Python<'_>, lazy: Box<PyErrStateLazyFn>, )
src/err/err_state.rs:366
↓ 2 callersMethodlen
(&self)
src/types/frozenset.rs:156
↓ 2 callersMethodlen
(&self)
src/types/set.rs:152
↓ 2 callersMethodlen_bytes
(&self)
src/buffer.rs:677
↓ 2 callersMethodlib_dir_string
Converts `lib_dir` member field to an UTF-8 string. The conversion can not fail because `PYO3_CROSS_LIB_DIR` variable is ensured contain a valid UTF-
pyo3-build-config/src/impl_.rs:1772
↓ 2 callersMethodlock
Acquire the mutex, blocking the current thread until it is able to do so.
src/sync/nonpoison.rs:66
↓ 2 callersMethodlookup_special
(&self, attr_name: N)
src/types/any.rs:1308
↓ 2 callersMethodmake_module
Builds a module object directly. Used for [`#[pymodule]`][crate::pymodule] submodules.
src/impl_/pymodule.rs:126
↓ 2 callersFunctionmap_result
(result: LockResult<T>, f: F)
src/sync/mutex.rs:222
↓ 2 callersMethodmissing_required_arguments
(&self, argument_type: &str, parameter_names: &[&str])
src/impl_/extract_argument.rs:896
↓ 2 callersMethodmodule
Gets the name of the module defining the `PyType`.
src/types/typeobject.rs:157
← previousnext →601–700 of 4,885, ranked by callers