MCPcopy Create free account

hub / github.com/PyO3/pyo3 / functions

Functions4,885 in github.com/PyO3/pyo3

↓ 1 callersFunctionlocate_tokens_at
Adjusts a tokes stream so that the location for the stream comes from `Span`. This affects where error messages will arise in the compiler output.
pyo3-macros-backend/src/utils.rs:348
↓ 1 callersFunctionmain
()
guide/glossary_linker.py:227
↓ 1 callersFunctionmake_byte_array
(py: Python<'_>, size: usize, value: u8)
src/types/bytearray.rs:500
↓ 1 callersFunctionmake_cross_compile_config
Generates an interpreter config suitable for cross-compilation. This must be called from PyO3's build script, because it relies on environment variab
pyo3-build-config/src/impl_.rs:2694
↓ 1 callersFunctionmake_loop
()
pytests/tests/test_finalization.py:8
↓ 1 callersMethodmake_normalized
(&self, py: Python<'_>)
src/err/err_state.rs:91
↓ 1 callersFunctionmax_datetime
(py: Python<'_>)
src/conversions/std/time.rs:368
↓ 1 callersMethodmethod
(self)
pytests/tests/test_pyclasses.py:27
↓ 1 callersFunctionmethods_type
()
pyo3-macros/src/lib.rs:241
↓ 1 callersMethodmissing_required_keyword_arguments
(&self, keyword_outputs: &[Option<PyArg<'_>>])
src/impl_/extract_argument.rs:914
↓ 1 callersMethodmissing_required_positional_arguments
(&self, output: &[Option<PyArg<'_>>])
src/impl_/extract_argument.rs:935
↓ 1 callersFunctionmodule
~^ ERROR: expected one of: `name`, `crate`, `module`, `submodule`, `gil_used`
tests/ui/invalid_pymodule_args.rs:5
↓ 1 callersMethodmultiple_values_for_argument
(&self, argument: &str)
src/impl_/extract_argument.rs:868
↓ 1 callersFunctionnative_element_type_from_type_char
(type_char: u8)
src/buffer.rs:132
↓ 1 callersFunctionnb_index
(obj: &Bound<'py, PyAny>)
src/conversions/std/num.rs:722
↓ 1 callersFunctionnew_datetime
( py: Python<'_>, year: i32, month: u8, day: u8, hour: u8, min
src/conversions/std/time.rs:342
↓ 1 callersFunctionnew_timedelta
( py: Python<'_>, days: i32, seconds: i32, microseconds: i32, )
src/conversions/std/time.rs:393
↓ 1 callersFunctionnew_zoneinfo
(py: Python<'py>, name: &str)
src/conversions/chrono_tz.rs:225
↓ 1 callersMethodnext
(&mut self)
src/types/dict.rs:537
↓ 1 callersMethodnext
(&mut self)
src/types/frozendict.rs:282
↓ 1 callersMethodnext
Advances the iterator and returns the next value.
src/types/frozenset.rs:219
↓ 1 callersMethodnext
(&mut self)
src/types/tuple.rs:403
↓ 1 callersFunctionnoargs
Noargs is a special case where the `_args` parameter is unused and not passed to the inner `Func`. # Safety Interpreter must be attached
src/impl_/trampoline.rs:113
↓ 1 callersFunctionnone_py
()
pytests/tests/test_pyfunctions.py:6
↓ 1 callersMethodnoop
(&self, x: usize)
pytests/src/othermod.rs:25
↓ 1 callersMethodnormalize
(self, py: Python<'_>)
src/err/err_state.rs:314
↓ 1 callersMethodnth
(&mut self, n: usize)
src/types/tuple.rs:438
↓ 1 callersMethodnull_terminated_python_name
(&self)
pyo3-macros-backend/src/method.rs:677
↓ 1 callersMethodob_base
(&self)
src/pycell/impl_.rs:517
↓ 1 callersMethodobj
(&self, py: Python<'py>)
src/buffer.rs:628
↓ 1 callersMethodoffsets
( mut self, dict_offset: Option<PyObjectOffset>, #[allow(unused_variables)] weaklist_o
src/pyclass/create_type_object.rs:354
↓ 1 callersMethodok_wrap
(&self, value: Result<T, E>)
src/impl_/wrap.rs:43
↓ 1 callersFunctionoption_type_argument
If `ty` is `Option<T>`, return `Some(T)`, else `None`.
pyo3-macros-backend/src/utils.rs:60
↓ 1 callersMethodoptional_trailing_args
(&self)
pyo3-macros-backend/src/pymethod.rs:217
↓ 1 callersMethodouter
(&self)
src/types/frame.rs:101
↓ 1 callersMethodoutput_type
(&self)
pyo3-macros-backend/src/intopyobject.rs:366
↓ 1 callersFunctionparse_arg_as_i32
A helper to parse function arguments If we used PyO3's proc macros they'd handle all of this boilerplate for us :)
pyo3-ffi/examples/string-sum/src/lib.rs:91
↓ 1 callersFunctionparse_chunks
Parses the introspection chunks found in the binary
pyo3-introspection/src/introspection.rs:29
↓ 1 callersFunctionparse_glossary
Parse glossary.md and return (local_terms, external_terms). local_terms: dict of {term: url} for definition-list entries (link to glossary anchor
guide/glossary_linker.py:30
↓ 1 callersMethodparse_implementation
Parses `PYO3_CROSS_PYTHON_IMPLEMENTATION` environment variable value into `PythonImplementation`.
pyo3-build-config/src/impl_.rs:1836
↓ 1 callersFunctionparse_method_attributes
(attrs: &mut Vec<syn::Attribute>)
pyo3-macros-backend/src/method.rs:1254
↓ 1 callersFunctionparse_method_receiver
(arg: &syn::FnArg, non_null: bool)
pyo3-macros-backend/src/method.rs:593
↓ 1 callersFunctionparse_shorthand_format
shorthand parsing logic inspiration taken from https://github.com/dtolnay/thiserror/blob/master/impl/src/fmt.rs
pyo3-macros-backend/src/attributes.rs:101
↓ 1 callersFunctionparse_sysconfigdata
Parse sysconfigdata file The sysconfigdata is simply a dictionary containing all the build time variables used for the python executable and library.
pyo3-build-config/src/impl_.rs:2092
↓ 1 callersMethodparse_version
Parses `PYO3_CROSS_PYTHON_VERSION` environment variable value into `PythonVersion` and ABI flags.
pyo3-build-config/src/impl_.rs:1814
↓ 1 callersMethodpoll_cancelled
Poll to retrieve the exception thrown in the associated coroutine.
src/coroutine/cancel.rs:32
↓ 1 callersMethodpop
(&self)
src/types/set.rs:199
↓ 1 callersFunctionpopulated_module
A module with one member of every kind that lands in `__all__` at runtime.
pyo3-introspection/src/stubs.rs:1075
↓ 1 callersMethodpositional_only_keyword_arguments
(&self, parameter_names: &[&str])
src/impl_/extract_argument.rs:886
↓ 1 callersMethodpow
(&self, other: &Bound<'py, PyComplex>)
src/types/complex.rs:265
↓ 1 callersFunctionprint_config_and_exit
(config: &InterpreterConfig)
pyo3-ffi/build.rs:379
↓ 1 callersFunctionprint_feature_cfg
Helper to print a feature cfg with a minimum rust version required.
pyo3-build-config/src/lib.rs:281
↓ 1 callersFunctionprocess_functions_in_module
Finds and takes care of the #[pyfn(...)] in `#[pymodule]`
pyo3-macros-backend/src/module.rs:606
↓ 1 callersFunctionprocess_item
Recursively process a book item, linking glossary terms.
guide/glossary_linker.py:202
↓ 1 callersMethodptype
(&self, py: Python<'py>)
src/err/err_state.rs:164
↓ 1 callersFunctionpush_indented
Appends `text` to `buffer`, prefixing every line after the first with `indent`. The first line is left alone because callers have already written the
pyo3-introspection/src/stubs.rs:300
↓ 1 callersMethodpush_raw_vec_slot
# Safety It is the caller's responsibility that `data` is of the correct type for the given slot.
src/pyclass/create_type_object.rs:169
↓ 1 callersMethodpush_str_to_escape
(&mut self, value: &str)
pyo3-macros-backend/src/introspection.rs:562
↓ 1 callersMethodpush_tokens
(&mut self, token_stream: TokenStream)
pyo3-macros-backend/src/introspection.rs:548
↓ 1 callersMethodpush_unchecked
(&mut self, item: T)
src/conversions/std/array.rs:129
↓ 1 callersFunctionpy_class_qualified_name
(module_name: Option<&str>, class_name: &str)
src/pyclass/create_type_object.rs:527
↓ 1 callersFunctionpy_datetime_to_datetime_with_timezone
( dt: &Bound<'_, PyDateTime>, tz: Tz, )
src/conversions/chrono.rs:636
↓ 1 callersFunctionpyclass_class_getitem
( options: &PyClassPyO3Options, cls: &syn::Type, ctx: &Ctx, )
pyo3-macros-backend/src/pyclass.rs:2660
↓ 1 callersFunctionpyclass_enum_impl
( attrs: TokenStream, mut ast: syn::ItemEnum, methods_type: PyClassMethodsType, )
pyo3-macros/src/lib.rs:206
↓ 1 callersFunctionpyclass_impl
( attrs: TokenStream, mut ast: syn::ItemStruct, methods_type: PyClassMethodsType, )
pyo3-macros/src/lib.rs:191
↓ 1 callersFunctionpyclass_new_impl
( options: &PyClassPyO3Options, ty: &syn::Type, fields: impl Iterator<Item = &'a &'a syn::Field>,
pyo3-macros-backend/src/pyclass.rs:2571
↓ 1 callersFunctionpyclass_richcmp_simple_enum
( options: &PyClassPyO3Options, cls: &syn::Type, repr_type: &syn::Ident, ctx: &Ctx, )
pyo3-macros-backend/src/pyclass.rs:2365
↓ 1 callersFunctionpylong_from_digits
( py: Python<'_>, negative: bool, digits: I, )
src/conversions/std/num.rs:403
↓ 1 callersMethodpymethod_def
(&mut self, def: &PyMethodDefType)
src/pyclass/create_type_object.rs:179
↓ 1 callersFunctionpymethods_impl
( attr: TokenStream, input: TokenStream, methods_type: PyClassMethodsType, )
pyo3-macros/src/lib.rs:221
↓ 1 callersFunctionpymodule_function_impl
Generates the function that is called by the python interpreter to initialize the native module
pyo3-macros-backend/src/module.rs:466
↓ 1 callersFunctionpymodule_module_impl
( module: &mut syn::ItemMod, mut options: PyModuleOptions, )
pyo3-macros-backend/src/module.rs:100
↓ 1 callersMethodpyrepr_by_ref
(&self)
src/instance.rs:2855
↓ 1 callersFunctionpython_format
( any: &Bound<'_, PyAny>, format_result: PyResult<Bound<'_, PyString>>, f: &mut core::fmt::Formatt
src/instance.rs:776
↓ 1 callersFunctionpython_index_class
(py: Python<'_>)
src/conversions/num_bigint.rs:592
↓ 1 callersFunctionpython_zoneinfo
(py: Python<'py>, timezone: &str)
src/conversions/chrono.rs:1251
↓ 1 callersFunctionpytime_to_time
(time: &impl PyTimeAccess)
src/conversions/jiff.rs:90
↓ 1 callersFunctionraise_overflowerror
(obj: *mut PyObject)
pyo3-ffi/examples/string-sum/src/lib.rs:121
↓ 1 callersFunctionraw_bytes
(inst: &ffi::PySlot)
src/impl_/pymodule.rs:682
↓ 1 callersMethodready
(&self)
pyo3-ffi/src/cpython/unicodeobject.rs:238
↓ 1 callersFunctionregister_decref
(obj: Py<PyAny>)
src/internal/state.rs:353
↓ 1 callersMethodrelease_dict
(&mut self, _py: Python<'_>)
src/impl_/pyclass.rs:137
↓ 1 callersMethodrepeat
(&self, count: usize)
src/types/sequence.rs:189
↓ 1 callersFunctionreplace_item_content
(item)
guide/pyo3_version.py:31
↓ 1 callersFunctionreplace_self
Replace Self in types with the given type
pyo3-macros-backend/src/py_expr.rs:366
↓ 1 callersMethodreproducer
(&mut self, py: Python<'_>)
src/marker.rs:978
↓ 1 callersFunctionrequire_libdir_for_target
Checks if we need to discover the Python library directory to link the extension module binary. Must be called from a PyO3 crate build script.
pyo3-build-config/src/impl_.rs:1680
↓ 1 callersMethodrequire_unsafe
(mut self)
pyo3-macros-backend/src/pymethod.rs:1492
↓ 1 callersMethodreset
(&mut self)
src/coroutine/waker.rs:24
↓ 1 callersMethodresolve
(&self, value: ValueT)
src/internal/pyclass_init.rs:112
↓ 1 callersFunctionresolve_build_config
Gets the configuration for use from `pyo3-ffi`'s build script.
pyo3-build-config/src/lib.rs:208
↓ 1 callersFunctionresult_into_callback_output
(py: Python<'_>, result: PyResult<R>)
src/impl_/trampoline.rs:343
↓ 1 callersMethodret_ty
(mut self, ret_ty: Ty)
pyo3-macros-backend/src/pymethod.rs:1781
↓ 1 callersMethodreturn_call_output
(&self, call: TokenStream, ctx: &Ctx)
pyo3-macros-backend/src/pymethod.rs:1331
↓ 1 callersMethodreturn_conversion
(mut self, return_conversion: TokenGenerator)
pyo3-macros-backend/src/pymethod.rs:1472
↓ 1 callersMethodreturn_iter_conversion
(mut self, wrapper: StaticIdent, fallback: StaticIdent)
pyo3-macros-backend/src/pymethod.rs:1477
↓ 1 callersFunctionreturn_memoryview
(py: Python<'_>)
pytests/src/buf_and_str.rs:49
↓ 1 callersMethodreverse
Reverses the list in-place. Equivalent to the Python expression `l.reverse()`.
src/types/list.rs:446
↓ 1 callersMethodrfold
(mut self, init: B, mut f: F)
src/types/list.rs:803
↓ 1 callersFunctionroundtrip
(py: Python<'_>, ip: &str)
src/conversions/std/ipaddr.rs:142
← previousnext →1,201–1,300 of 4,885, ranked by callers