Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Xophmeister
· 9y ago · 0 comments
I guess that's how Python 3.6's typing.NamedTuple works, which is frankly a much nicer syntax for named tuples.
Comments
[–]
JelleZijlstra
9y ago
It'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.