ID EN
Collections

_make

Python 3.11

Class method that makes a new instance from an existing sequence or iterable.

Syntax

PYTHON
classmethod somenamedtuple._make(iterable)

Examples

Example 1
PYTHON
>>> t = [11, 22]
>>> Point._make(t)
Point(x=11, y=22)