Closed
Description
Python 3.7 adds support for specifying default values in call to collections.namedtuple
, see python/cpython#4859. So for example this is valid:
from collections import namedtuple
NT = namedtuple('NT', ('x', 'y'), defaults=(0, 0))
NT()
NT(1)
NT(1, 2)
Should we support this, or supporting default values for typing.NamedTuple
(already implemented) is enough?