MCPcopy Create free account

hub / github.com/PyO3/pyo3 / functions

Functions4,885 in github.com/PyO3/pyo3

↓ 3 callersMethodpython_name
(&self)
pyo3-macros-backend/src/konst.rs:28
↓ 3 callersMethodqualname
Gets the [qualified name](https://docs.python.org/3/glossary.html#term-qualified-name) of the `PyType`.
src/types/typeobject.rs:138
↓ 3 callersFunctionraise_lazy
Raises a "lazy" exception state into the Python interpreter. In principle this could be split in two; first a function to create an exception in a no
src/err/err_state.rs:390
↓ 3 callersFunctionreader
()
tests/test_pyself.rs:85
↓ 3 callersMethodreadonly
(&self)
src/buffer.rs:656
↓ 3 callersMethodrelease_borrow_mut
(&self)
src/pycell/impl_.rs:141
↓ 3 callersFunctionrun_python_script_with_envs
Run a python script using the specified interpreter binary with additional environment variables (e.g. PYTHONPATH) set.
pyo3-build-config/src/impl_.rs:2566
↓ 3 callersMethodsend
(&mut self, value: Bound<'_, PyAny>)
pytests/src/awaitable.rs:48
↓ 3 callersMethodsend
(&self, value: &Bound<'py, PyAny>)
src/types/iterator.rs:84
↓ 3 callersMethodsource
(&self)
pyo3-build-config/src/errors.rs:57
↓ 3 callersMethodtakes_args_and_kwargs
Whether Python hands this protocol an `args`/`kwargs` pair. `tp_new`, `tp_init` and `tp_call` do, so they accept keyword arguments and a `#[pyo3(sign
pyo3-macros-backend/src/pymethod.rs:207
↓ 3 callersFunctiontest_dict
Return a dict with `s = Count5()`.
tests/test_static_slots.rs:39
↓ 3 callersFunctionthread_is_attached
()
src/internal/state.rs:38
↓ 3 callersMethodto_introspection_token_stream
(&self, pyo3_crate_path: &PyO3CratePath)
pyo3-macros-backend/src/py_expr.rs:218
↓ 3 callersMethodto_vec
(&self)
src/types/bytearray.rs:291
↓ 3 callersMethodtraceback
Returns the traceback of this exception object. # Examples ```rust use pyo3::{exceptions::PyTypeError, Python}; Python::attach(|py| { let err = PyTy
src/err/mod.rs:263
↓ 3 callersMethodtry_borrow
(obj: &Bound<'py, T>)
src/pycell.rs:314
↓ 3 callersMethodupgrade
(&self)
src/types/weakref/anyref.rs:329
↓ 3 callersMethodusize_index
(&self, index: isize)
tests/test_proto_methods.rs:360
↓ 3 callersMethodwalk_expr
(&mut self, expr: &Expr)
pyo3-introspection/src/stubs.rs:729
↓ 3 callersFunctionwith_critical_section_mutex2
( py: Python<'_>, m1: &'a PyMutex1, m2: &'b PyMutex2, f: F, )
src/sync/critical_section.rs:249
↓ 3 callersMethodwith_mod_exec
(self, exec: ModuleExecSlot)
src/impl_/pymodule.rs:334
↓ 3 callersMethodwrite_all
(&mut self, buf: &[u8])
src/types/bytes/writer.rs:198
↓ 3 callersMethodwrite_char
(&mut self, c: char)
src/fmt.rs:134
↓ 3 callersMethodwrite_py_attached
(&self, _py: Python<'_>)
src/sync.rs:570
↓ 2 callersFunctionPyBytes_AS_STRING
(op: *mut PyObject)
pyo3-ffi/src/cpython/bytesobject.rs:31
↓ 2 callersFunctionPyDateTime_FromTimestamp
(args: *mut PyObject)
pyo3-ffi/src/datetime.rs:817
↓ 2 callersFunctionPyDate_FromTimestamp
(args: *mut PyObject)
pyo3-ffi/src/datetime.rs:823
↓ 2 callersFunctionPyLong_Check
(op: *mut PyObject)
pyo3-ffi/src/longobject.rs:12
↓ 2 callersFunctionPySlot_FUNC
(NAME: c_int, VALUE: *mut c_void)
pyo3-ffi/src/slots.rs:72
↓ 2 callersFunctionPySlot_SIZE
(NAME: c_int, VALUE: Py_ssize_t)
pyo3-ffi/src/slots.rs:86
↓ 2 callersFunctionPyThreadState_GET
()
pyo3-ffi/src/pystate.rs:52
↓ 2 callersFunctionPyTuple_GET_ITEM
(op: *mut PyObject, i: Py_ssize_t)
pyo3-ffi/src/cpython/tupleobject.rs:29
↓ 2 callersFunctionPyTuple_GET_SIZE
(op: *mut PyObject)
pyo3-ffi/src/cpython/tupleobject.rs:23
↓ 2 callersFunctionPyUnicode_IS_COMPACT
(op: *mut PyObject)
pyo3-ffi/src/cpython/unicodeobject.rs:495
↓ 2 callersFunctionPyWeakref_CheckProxy
(op: *mut PyObject)
pyo3-ffi/src/weakrefobject.rs:47
↓ 2 callersFunctionPy_CLEAR
(op: *mut *mut PyObject)
pyo3-ffi/src/refcount.rs:340
↓ 2 callersFunctionPy_Ellipsis
()
pyo3-ffi/src/sliceobject.rs:15
↓ 2 callersFunction_PyByteArray_CAST
(op: *mut PyObject)
pyo3-ffi/src/cpython/bytearrayobject.rs:25
↓ 2 callersFunction_PyObject_VectorcallTstate
( tstate: *mut PyThreadState, callable: *mut PyObject, args: *const *mut PyObject, nargsf: siz
pyo3-ffi/src/cpython/abstract_.rs:83
↓ 2 callersFunction_PyVarObject_CAST
(op: *mut PyObject)
pyo3-ffi/src/object.rs:176
↓ 2 callersFunction_Py_IsImmortal
(op: *mut PyObject)
pyo3-ffi/src/refcount.rs:134
↓ 2 callersMethod__eq__
(self, other: object)
pytests/tests/test_comparisons.py:22
↓ 2 callersFunction__name__
(py: Python<'_>)
src/types/module.rs:585
↓ 2 callersMethod__ne__
(self, other: object)
pytests/tests/test_comparisons.py:28
↓ 2 callersMethod__next__
(&mut self, py: Python<'_>)
pytests/src/awaitable.rs:38
↓ 2 callersFunction_add_extension_module_link_args
( triple: &Triple, mut writer: impl std::io::Write, rustc_minor_version: Option<u32>, )
pyo3-build-config/src/lib.rs:67
↓ 2 callersFunction_add_python_framework_link_args
( interpreter_config: &InterpreterConfig, triple: &Triple, link_libpython: bool, mut writer: i
pyo3-build-config/src/lib.rs:121
↓ 2 callersFunction_clippy
( session: nox.Session, *, env: dict[str, str] | None = None, version: tuple[int, int] | None
noxfile.py:301
↓ 2 callersFunction_clippy_additional_workspaces
(session: nox.Session)
noxfile.py:328
↓ 2 callersFunction_config_file
Creates a temporary config file which can be repeatedly set to different values.
noxfile.py:2087
↓ 2 callersMethod_copy_from_slice
(&self, py: Python<'_>, source: &[T], fort: u8)
src/buffer.rs:488
↓ 2 callersMethod_copy_to_slice
(&self, py: Python<'_>, target: &mut [T], fort: u8)
src/buffer.rs:400
↓ 2 callersFunction_for_all_version_configs
(session: nox.Session, job: Job)
noxfile.py:2034
↓ 2 callersFunction_format_ffi_extern
Format extern blocks inside extern_libpython! macros in pyo3-ffi. rustfmt cannot format inside macro invocations, so this temporarily replace
noxfile.py:1038
↓ 2 callersFunction_get_coverage_env
(*flags: str)
noxfile.py:1932
↓ 2 callersMethod_get_refcnt
(&self, _py: Python<'_>)
src/instance.rs:1788
↓ 2 callersFunction_get_rust_default_target
()
noxfile.py:1870
↓ 2 callersFunction_is_github_actions
()
noxfile.py:2093
↓ 2 callersFunction_make_wasm
(session: nox.Session, info: WasiInfo, *targets: str)
noxfile.py:569
↓ 2 callersFunction_parse_supported_interpreter_version
( python_impl: Literal["cpython", "pypy", "graalpy"], )
noxfile.py:56
↓ 2 callersFunction_test_inplace_binary_operator
(operator: &str, dunder: &str)
tests/test_arithmetics.rs:731
↓ 2 callersMethod_to_vec
(&self, py: Python<'_>, fort: u8)
src/buffer.rs:438
↓ 2 callersMethodadd
(self, rhs: usize)
src/impl_/pyclass.rs:1244
↓ 2 callersMethodadd_help
(&mut self, help: &str)
pyo3-build-config/src/lib.rs:263
↓ 2 callersMethodadd_submodule
(&self, module: &Bound<'_, PyModule>)
src/types/module.rs:548
↓ 2 callersMethodadd_to_serialization
( self, content: &mut ConcatenationBuilder, pyo3_crate_path: &PyO3CratePath, )
pyo3-macros-backend/src/introspection.rs:394
↓ 2 callersFunctionargument_extraction_error
(py: Python<'_>, arg_name: &str, error: PyErr)
src/impl_/extract_argument.rs:454
↓ 2 callersFunctionarray_ptr_as_mut
Replacement for the unstable `<*mut [T; N]>::as_mut_ptr` method, which avoids possibility of type getting lost from using e.g. `.cast()` to change arr
src/internal_tricks.rs:33
↓ 2 callersMethodas_bytes_mut
(&self)
src/types/bytearray.rs:287
↓ 2 callersMethodas_mapping
(&self)
src/types/dict.rs:341
↓ 2 callersMethodas_type_hint
(&self)
pyo3-macros-backend/src/pyfunction/signature.rs:257
↓ 2 callersMethodascii
(&self)
pyo3-ffi/src/cpython/unicodeobject.rs:205
↓ 2 callersMethodassert_dropped
(&self)
tests/test_gc.rs:109
↓ 2 callersMethodassume_borrowed_or_err
( self, py: Python<'_>, )
src/ffi_ptr_ext.rs:81
↓ 2 callersMethodassume_borrowed_or_opt
(self, py: Python<'_>)
src/ffi_ptr_ext.rs:93
↓ 2 callersFunctionattribute_stubs
(attribute: &Attribute, imports: &Imports)
pyo3-introspection/src/stubs.rs:358
↓ 2 callersFunctionbox_into_non_null
TODO: use Box::into_non_null when stabilized
src/internal_tricks.rs:26
↓ 2 callersFunctionbuild_guide
(session: nox.Session)
noxfile.py:751
↓ 2 callersMethodbuiltins
(&self)
src/types/frame.rs:146
↓ 2 callersMethodcall
Visit `obj`. Note: `obj` accepts a variety of types, including - `&Py<T>` - `&Option<Py<T>>` - `Option<&Py<T>>`
src/pyclass/gc.rs:43
↓ 2 callersMethodcall_positional
( self, function: Borrowed<'_, 'py, PyAny>, token: private::Token, )
src/call.rs:91
↓ 2 callersFunctioncheck
()
tests/ui/invalid_async.rs:4
↓ 2 callersMethodcheck
(&self)
src/impl_/pyclass.rs:1096
↓ 2 callersFunctioncheck_drop
( py: Python<'py>, method: impl FnOnce(*mut ffi::PyObject) -> Bound<'py, PyAny
src/instance.rs:2632
↓ 2 callersFunctioncheck_generic
(sig: &syn::Signature)
pyo3-macros-backend/src/pymethod.rs:363
↓ 2 callersFunctioncheck_rust_src_paths
(output: &[u8], errors: &mut Vec<ui_test::Error>)
tests/test_compile_error.rs:308
↓ 2 callersMethodclone_ref
(&self, _py: Python<'_>)
src/instance.rs:1816
↓ 2 callersMethodclose
(&mut self)
src/coroutine.rs:156
↓ 2 callersFunctioncomplex_enum_variant_field_getter
( variant_cls_type: &syn::Type, field_name: &Ident, field_type: &syn::Type, field_attrs: &[syn
pyo3-macros-backend/src/pyclass.rs:2127
↓ 2 callersMethodconcat
(&self, other: &Bound<'_, PySequence>)
src/types/sequence.rs:180
↓ 2 callersMethodconvert
(self, py: Python<'py>)
src/impl_/callback.rs:78
↓ 2 callersFunctionconvert_members
Convert a list of members of a module or a class
pyo3-introspection/src/introspection.rs:124
↓ 2 callersFunctionconvert_module
( id: &str, name: &str, members: &[String], mut incomplete: bool, docstring: Option<&str>,
pyo3-introspection/src/introspection.rs:80
↓ 2 callersMethodcount
(self)
src/types/set.rs:262
↓ 2 callersFunctioncount_line
Count the occurrences of needle in line, case insensitive
examples/word-count/src/lib.rs:25
↓ 2 callersFunctioncount_spaces
(bytes: &[u8], mut i: usize)
src/impl_/unindent.rs:126
↓ 2 callersFunctioncreate_date_from_py_date
( py: Python<'_>, year: i32, month: u8, day: u8, )
src/conversions/time.rs:534
↓ 2 callersFunctioncreate_time_from_py_time
( py: Python<'_>, hour: u8, minute: u8, second: u8,
src/conversions/time.rs:549
↓ 2 callersMethoddata
(&self)
src/types/bytearray.rs:279
← previousnext →501–600 of 4,885, ranked by callers