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 <rep...@bugs.python.org>
<http://bugs.python.org/issue13936>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to