[issue13936] RFE: change bool(datetime.time(0, 0, 0)) to evaluate as True
Marc-Andre Lemburg
report at bugs.python.org
Thu Mar 6 10:37:24 CET 2014
Marc-Andre Lemburg added the comment:
On 06.03.2014 10:30, Antoine Pitrou wrote:
>
> 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.
datetime values with the time set to midnight are *very* common in practice.
You run into them whenever you convert dates into datetime values.
----------
title: RFE: change bool(datetime.time(0,0,0)) to evaluate as True -> RFE: change bool(datetime.time(0, 0, 0)) to evaluate as True
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13936>
_______________________________________
More information about the Python-bugs-list
mailing list