Class method that makes a new instance from an existing sequence or iterable.
-.. doctest::
+ .. doctest::
>>> t = [11, 22]
>>> Point._make(t)
.. method:: somenamedtuple._replace(kwargs)
Return a new instance of the named tuple replacing specified fields with new
- values:
-
-::
+ values::
>>> p = Point(x=11, y=22)
>>> p._replace(x=33)
Tuple of strings listing the field names. Useful for introspection
and for creating new named tuple types from existing named tuples.
-.. doctest::
+ .. doctest::
>>> p._fields # view the field names
('x', 'y')