On 17.05.2017 18:48, Ivan Levkivskyi wrote:
from typing import NamedTuple
I hope the second ': int' can be omitted because 0 already is an
This makes me wonder three things:
1) Michel, can newcomers differentiate between when to use ' : ' and
when to use ' = ' and a combination thereof?
2) There must be a lot of cornercases where people rewrite Foo to be
a normal class in the end, right?
3) If one doesn't need tuple-__dunder__ methods, a "normal" class
would even need 1 line less. (+ Stephan's second point)
So, this still leaves those missing __dunder__ magic methods doing
the right thing at the right time.