[Python-ideas] Please reconsider the Boolean evaluation of midnight

Rob Cliffe rob.cliffe at btinternet.com
Thu Mar 6 12:56:31 CET 2014


On 06/03/2014 02:15, Tim Peters wrote:
> [Donald Stufft]
>> When the documented behavior is both nonsensical and the cause of hard
>> to debug bugs that is a pretty compelling use case to me, unless you actively
>> enjoy being user hostile.
> Breaking code that currently works is as hostile as hostile gets.
> Where is the evidence that no code relies on the current behavior?
> For that matter, where is the evidence that the current behavior is a
> significant cause of bugs?  I know I've used "if some_time_object:",
> but it did exactly what I expected it to do.
Well, let's start a survey.  So far we have:

Instances of existing code that would be broken by the change: 0
Instances of code where the unexpected behaviour caused a bug: 1 (the 
OP's code).

I invite everyone to add instances that they know about.:-)

Rob Cliffe
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.2247 / Virus Database: 3705/6655 - Release Date: 03/05/14
>
>



More information about the Python-ideas mailing list