[issue13936] RFE: change bool(datetime.time(0, 0, 0)) to evaluate as True

Antoine Pitrou report at bugs.python.org
Thu Mar 6 10:30:46 CET 2014


Antoine Pitrou added the comment:

I agree that having midnight evaluate to false is completely unexpected and unintuitive. I can imagine situations where it bites people in production use in the uncommon case that a time is exactly equal to midnight.

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13936>
_______________________________________


More information about the Python-bugs-list mailing list