Nick Coghlan added the comment:

Alexander, my goal is to flip the default assumption in the time discussion. It 
is clear from the documentation that the current behaviour is intentional, but 
there is no concrete *use case* given for it. This is in stark contrast to the 
other types where treating zero or an empty container differently is quite 
common, and hence generally unsurprising.

This has resulted in a problem, since the default for most types is that all 
instances are true, and users mistakenly assume that assumption will hold for 
datetime.time objects. This is particularly likely for newer users that don't 
have experience with lower level models of time of day as "seconds since 
midnight" (which is the mental model where the current behaviour makes sense, 
and the most plausible rationale for its origins).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20855>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to