Lines Matching defs:tuple
87 Matches * unpacking in Python, e.g. to unpack arguments out of a ``tuple``
300 py::tuple t = reinterpret_borrow<py::tuple>(p); // <-- `p` must be already be a `tuple`
345 /// subclass thereof). May also be passed a tuple to search for any exception class matches in
346 /// the given tuple.
602 /// STL iterator template used for tuple, list, sequence and dict
1198 class tuple : public object {
1200 PYBIND11_OBJECT_CVT(tuple, object, PyTuple_Check, PySequence_Tuple)
1201 explicit tuple(size_t size = 0) : object(PyTuple_New((ssize_t) size), stolen_t{}) {
1202 if (!m_ptr) pybind11_fail("Could not allocate tuple object!");
1274 class args : public tuple { PYBIND11_OBJECT_DEFAULT(args, tuple, PyTuple_Check) };