4 ms·
I guess that's how Python 3.6's typing.NamedTuple works, which is frankly a much nicer syntax for named tuples.
by Xophmeister 9y ago
I guess that's how Python 3.6's typing.NamedTuple works, which is frankly a much nicer syntax for named tuples.
- JelleZijlstra 9y agoIt's not actually; typing.NamedTuple is just a wrapper that calls the original collections.namedtuple. It does provide some additional features, like default values and methods.