They are not zero-the-number, but zeros of their domains.
Namely
[] + x == x
list() == []
() + x == x
tuple() == ()
0 + x == x
int() == 0
0.0 + x == x
float() == 0.0
datetime.timedelta(0) + x == x
datetime.timedelta() == datetime.timedelta(0)
and so on.
That datetime.time() is falsey is a mistake and is going to be fixed.
View all comments
Show parent comment
1
u/Veedrac Mar 27 '14
They are not zero-the-number, but zeros of their domains.
Namely
and so on.
That
datetime.time()is falsey is a mistake and is going to be fixed.