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

Antoine Pitrou solipsis at pitrou.net
Thu Mar 6 10:34:55 CET 2014


Le 06/03/2014 03:15, Tim Peters a écrit :
> [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.

The current behaviour being highly unintuitive is a likely source of 
bugs, IMO.

Regards

Antoine.




More information about the Python-ideas mailing list