MCPcopy Create free account

hub / github.com/PyO3/pyo3 / functions

Functions4,885 in github.com/PyO3/pyo3

Functionnew_reference
(object: &Bound<'py, PyAny>)
src/types/weakref/anyref.rs:349
Methodnew_takes_no_arguments
~^ ERROR: `#[new]` does not take any arguments
tests/ui/invalid_pymethods.rs:124
Methodnew_takes_no_arguments_nv
in this form there's no suggestion to move arguments to `#[pyo3()]` attribute ~^ ERROR: `#[new]` does not take any arguments
tests/ui/invalid_pymethods.rs:131
Methodnew_type
Creates a new exception type with the given name and docstring. - `base` can be an existing exception type to subclass, or a tuple of classes. - `dic
src/err/mod.rs:350
Methodnew_utf8
Creates a Python `UnicodeDecodeError` from a Rust UTF-8 decoding error. # Examples ``` use pyo3::prelude::*; use pyo3::exceptions::PyUnicodeDecodeEr
src/exceptions.rs:761
Functionnew_watch_callback
()
src/types/context.rs:335
Methodnew_with
Creates a new Python `bytearray` object with an `init` closure to write its contents. Before calling `init` the bytearray is zero-initialised. If Pyth
src/types/bytearray.rs:79
Methodnew_with
(py: Python<'_>, len: usize, init: F)
src/types/bytes.rs:118
Methodnew_with
use pyo3::prelude::*; use pyo3::types::PyWeakrefReference; #[pyclass(weakref)] struct Foo { /* fields omitted */ } #[pyfunction] fn callback(wref: B
src/types/weakref/reference.rs:144
Methodnew_with
( object: &Bound<'py, PyAny>, callback: C, )
src/types/weakref/proxy.rs:136
Functionnew_with_custom_error
()
tests/test_class_new.rs:207
Methodnew_with_destructor
( py: Python<'_>, value: T, name: Option<CString>, destructor: F, )
src/types/capsule.rs:236
Methodnew_with_fold
( py: Python<'py>, year: i32, month: u8, day: u8, hour: u8, mi
src/types/datetime.rs:398
Methodnew_with_keywords
Create a new built-in function with keywords (*args and/or **kwargs). To create `name` and `doc` static strings on Rust versions older than 1.77 (whi
src/types/function.rs:53
Functionnew_with_one_arg
()
tests/test_class_new.rs:103
Methodnew_with_pointer
Constructs a new capsule from a raw pointer. Unlike [`PyCapsule::new`], which stores a value and sets the capsule's pointer to that value's address,
src/types/capsule.rs:307
Methodnew_with_pointer_and_destructor
Constructs a new capsule from a raw pointer with an optional destructor. This is the full-featured version of [`PyCapsule::new_with_pointer`], allowi
src/types/capsule.rs:365
Methodnew_with_step
Creates a new Python `range` object with a specified step.
src/types/range.rs:43
Functionnew_with_two_args
()
tests/test_class_new.rs:131
Methodnew_with_value
Constructs a new capsule whose contents are `value`, associated with `name`. `name` is the identifier for the capsule; if it is stored as an attribute
src/types/capsule.rs:135
Methodnew_with_value_and_destructor
Constructs a new capsule whose contents are `value`, associated with `name`. Also provides a destructor: when the `PyCapsule` is destroyed, it will b
src/types/capsule.rs:195
Methodnew_with_writer
( py: Python<'py>, reserved_capacity: usize, write: F, )
src/types/bytes.rs:163
Methodnext
(&mut self)
src/types/mappingproxy.rs:139
Methodnext
Retrieves the next item from an iterator. Returns `None` when the iterator is exhausted. If an exception occurs, returns `Some(Err(..))`. Further `ne
src/types/iterator.rs:108
Methodnext
(&mut self)
src/conversions/num_bigint.rs:91
Methodnext
(&mut self)
src/impl_/pyclass.rs:336
Methodnext_back_unsynchronized
( index: &mut Index, length: &mut Length, list: &Bound<'py, PyList>, )
src/types/list.rs:537
Methodnext_unsynchronized
( index: &mut Index, length: &mut Length, list: &Bound<'py, PyList>, )
src/types/list.rs:487
Functionno_args
()
tests/test_pyfunction.rs:817
Functionno_constructor_defined
( subtype: *mut ffi::PyTypeObject, _args: *mut ffi::PyObject, _kwds: *mut ffi::PyObject, )
src/pyclass/create_type_object.rs:562
Functionno_error
()
src/err/mod.rs:795
Functionno_message_deprecated
~^ ERROR: missing `message` in `warn` attribute
tests/ui/invalid_pyfunction_warn.rs:11
Functionno_message_deprecated_with_category
~^ ERROR: missing `message` in `warn` attribute
tests/ui/invalid_pyfunction_warn.rs:16
Functionno_parenthesis_deprecated
~^ ERROR: unexpected end of input, expected parentheses
tests/ui/invalid_pyfunction_warn.rs:6
Methodnoargs
Define a function that takes no arguments.
src/impl_/pymethods.rs:168
Methodnone
`None`
pyo3-macros-backend/src/py_expr.rs:207
Functionnoop
()
tests/test_coroutine.rs:31
Functionnoop_coroutine
()
tests/test_coroutine.rs:29
Methodnormalized
(normalized: PyErrStateNormalized)
src/err/err_state.rs:50
Functionnot_a_list_via_cast
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_frompyobject.rs:42
Functionnot_a_list_via_extract
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_frompyobject.rs:50
Functionnot_a_list_via_extract_enum
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_frompyobject.rs:64
Methodnot_unix_method
(&self)
tests/test_methods.rs:936
Functionnovisit
(_obj: Borrowed<'_, '_, PyAny>)
tests/test_gc.rs:1209
Methodnth_back
(&mut self, n: usize)
src/types/tuple.rs:487
Methodnth_back_unsynchronized
( index: &mut Index, length: &mut Length, list: &Bound<'py, PyList>, n: usize,
src/types/list.rs:559
Methodnth_unsynchronized
( index: &mut Index, length: &mut Length, list: &Bound<'py, PyList>, n: usize,
src/types/list.rs:510
Methodoccurred
(_: Python<'_>)
src/err/mod.rs:274
Methodoffset_def
(name: &'static CStr, offset: PyObjectOffset)
src/pyclass/create_type_object.rs:363
Functiononly_short_callable_slots_have_optional_trailing_args
()
pyo3-macros-backend/src/pymethod.rs:2043
Functionoption_class_arg
(arg: Option<&SomePyClass>)
tests/test_methods.rs:1264
Methodoptional_add
(&self, other: Option<&MethodWithPyClassArg>)
tests/test_methods.rs:868
Functionoptional_bool
(arg: Option<bool>)
tests/test_pyfunction.rs:35
Methodoptional_inplace_add
(&self, other: Option<&mut MethodWithPyClassArg>)
tests/test_methods.rs:874
Functionoptional_int
(x: &Bound<'_, PyAny>)
tests/test_pyfunction.rs:255
Functionordering
()
tests/test_arithmetics.rs:742
Functionoverflowing_size
()
src/types/tuple.rs:1445
Functionoverflowing_size
()
src/types/list.rs:1466
Methodowned_sequence_into_pyobject
( iter: I, py: Python<'py>, _: private::Token, )
src/conversion.rs:68
Methodowned_sequence_into_pyobject
( iter: I, py: Python<'py>, _: crate::conversion::private::Token, )
src/conversions/std/num.rs:206
Functionpanic
()
tests/test_coroutine.rs:246
Functionpanic_callback
(_py: Python<'_>, _event: ContextEvent<'_, '_>)
src/types/context.rs:644
Functionpanic_result_into_callback_output
( py: Python<'_>, panic_result: Result<PyResult<R>, Box<dyn Any + Send + 'static>>, )
src/impl_/trampoline.rs:327
Functionpanic_unsendable_base
()
tests/test_class_basics.rs:335
Functionpanic_unsendable_child
()
tests/test_class_basics.rs:344
Methodparse
(input: ParseStream<'_>)
pyo3-macros-backend/src/pyfunction.rs:46
Methodparse
(input: ParseStream<'_>)
pyo3-macros-backend/src/module.rs:46
Methodparse
(input: ParseStream<'_>)
pyo3-macros-backend/src/attributes.rs:167
Methodparse
( sig: &'a mut syn::Signature, meth_attrs: &mut Vec<syn::Attribute>, options: PyFuncti
pyo3-macros-backend/src/pymethod.rs:227
Methodparse
(input: ParseStream<'_>)
pyo3-macros-backend/src/derive_attributes.rs:25
Methodparse
(input: ParseStream<'_>)
pyo3-macros-backend/src/pyimpl.rs:43
Methodparse
(input: ParseStream<'_>, kind: PyClassKind)
pyo3-macros-backend/src/pyclass.rs:56
Methodparse
(input: ParseStream<'_>)
pyo3-macros-backend/src/konst.rs:53
Methodparse
(input: ParseStream<'_>)
pyo3-macros-backend/src/pyfunction/signature.rs:27
Functionparse_cross_python_version
()
pyo3-build-config/src/impl_.rs:3782
Methodparse_enum_args
(input: ParseStream<'_>)
pyo3-macros-backend/src/pyclass.rs:67
Methodparse_fn_type
( sig: &syn::Signature, meth_attrs: &mut Vec<syn::Attribute>, python_name: &mut Option
pyo3-macros-backend/src/method.rs:683
Methodparse_if_matching_attribute
Attempts to parse a method type attribute. If the attribute does not match one of the attribute names, returns `Ok(None)`. Otherwise will either ret
pyo3-macros-backend/src/method.rs:1172
Functionparse_int
()
tests/test_exceptions.rs:97
Methodparse_struct_args
(input: ParseStream<'_>)
pyo3-macros-backend/src/pyclass.rs:63
Methodpartial_cmp
(&self, other: &(u8, u8))
src/version.rs:87
Methodpartial_cmp
(&self, other: &Self)
tests/test_class_comparisons.rs:234
Functionpass_module_but_no_arguments
()
tests/ui/invalid_pyfunctions.rs:35
Functionphantom_into_py
( _: std::borrow::Cow<'_, std::marker::PhantomData<T>>, py: Python<'py>, )
tests/test_intopyobject.rs:151
Functionplugin_api
(m: &Bound<'_, PyModule>)
examples/plugin/plugin_api/src/lib.rs:29
Functionpool_dec_refs_contains
(obj: &Py<PyAny>)
src/internal/state.rs:440
Functionpool_dec_refs_does_not_contain
(obj: &Py<PyAny>)
src/internal/state.rs:419
Methodpos
(&self)
src/types/any.rs:959
Methodposition
(&mut self, mut predicate: P)
src/types/list.rs:747
Functionpositional
(_arg: i32)
tests/test_pyfunction.rs:820
Functionpositional_only
(a: Any<'py>, b: Any<'py>)
pytests/src/pyfunctions.rs:82
Functionprepare_wasm
(session: nox.Session)
noxfile.py:584
Methodprint
Calls `sys.excepthook` and then prints a standard traceback to `sys.stderr`.
src/err/mod.rs:408
Methodprint_and_set_sys_last_vars
Calls `sys.excepthook` and then prints a standard traceback to `sys.stderr`. Additionally sets `sys.last_{type,value,traceback,exc}` attributes to th
src/err/mod.rs:416
Methodprint_panic_and_unwind
(py: Python<'_>, state: PyErrStateNormalized)
src/err/mod.rs:300
Functionpush_parameter_list_empty
()
src/impl_/extract_argument.rs:1214
Functionpush_parameter_list_four
()
src/impl_/extract_argument.rs:1242
Functionpush_parameter_list_one
()
src/impl_/extract_argument.rs:1221
Functionpush_parameter_list_three
()
src/impl_/extract_argument.rs:1235
Functionpush_parameter_list_two
()
src/impl_/extract_argument.rs:1228
← previousnext →3,201–3,300 of 4,885, ranked by callers