Re:Please reconsider the Boolean evaluation of midnight
by barakm on Thursday March 06, 2014 @01:53PM
(#7355762)
Came here to say this. It's the most useful statement in the entire thread of "you're wrong!" "no, you're wrong!" and nobody noticed.
[ Parent
| on HN ]
Re:Please reconsider the Boolean evaluation of midnight
by dalke on Thursday March 06, 2014 @08:17PM
(#7357847)
Perhaps people ignored it because it isn't true? {}+{} fails, because addition of dictionaries is non-abelian and Python refuses to choose a preferred result. But bool({}) is perfectly reasonable.