Skip to main content

Module tuple

Module tuple 

Source
Expand description

Python tuples and related types.

Re-exportsยง

use crate::BoundObject; ๐Ÿ”’ (Py_3_12 or non-Py_LIMITED_API) and neither GraalPy nor PyPy
use crate::ffi; ๐Ÿ”’
use crate::ffi::Py_ssize_t; ๐Ÿ”’
use crate::ffi_ptr_ext::FfiPtrExt; ๐Ÿ”’
use crate::inspect::PyStaticExpr; ๐Ÿ”’ experimental-inspect
use crate::inspect::type_hint_subscript; ๐Ÿ”’ experimental-inspect
use crate::instance::Borrowed; ๐Ÿ”’
use crate::internal_tricks::get_ssize_index; ๐Ÿ”’
use crate::type_object::PyTypeInfo; ๐Ÿ”’ experimental-inspect
use crate::types::PyList; ๐Ÿ”’
use crate::types::PySequence; ๐Ÿ”’
use crate::types::sequence::PySequenceMethods; ๐Ÿ”’
use crate::Bound; ๐Ÿ”’
use crate::FromPyObject; ๐Ÿ”’
use crate::FromPyObject; ๐Ÿ”’
use crate::IntoPyObject; ๐Ÿ”’
use crate::IntoPyObject; ๐Ÿ”’
use crate::IntoPyObjectExt; ๐Ÿ”’
use crate::PyAny; ๐Ÿ”’
use crate::PyErr; ๐Ÿ”’
use crate::PyResult; ๐Ÿ”’
use crate::Python; ๐Ÿ”’
use crate::exceptions; ๐Ÿ”’
use core::iter::FusedIterator; ๐Ÿ”’
use libc::size_t; ๐Ÿ”’ (Py_3_12 or non-Py_LIMITED_API) and neither GraalPy nor PyPy
use crate::platform::prelude::*; ๐Ÿ”’

Macrosยง

tuple_conversion ๐Ÿ”’

Structsยง

BorrowedTupleIterator
Used by PyTuple::iter_borrowed().
BoundTupleIterator
Used by PyTuple::into_iter().
PyTuple
Represents a Python tuple object.

Traitsยง

PyTupleMethods
Implementation of functionality for PyTuple.

Functionsยง

array_into_tuple ๐Ÿ”’
try_new_from_iter ๐Ÿ”’
with_vectorcall_arguments_offset ๐Ÿ”’ (Py_3_12 or non-Py_LIMITED_API) and neither GraalPy nor PyPy
Add PY_VECTORCALL_ARGUMENTS_OFFSET to the given number, checking for overflow at compile time.
wrong_tuple_length ๐Ÿ”’
โš ๏ธ Internal Docs โš ๏ธ Not Public API ๐Ÿ‘‰ Official Docs Here