[Python-ideas] Programming recommendations (PEP 8) and boolean values

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Aug 9 05:24:59 CEST 2012

On 09/08/12 04:59, Oleg Broytman wrote:
>     To distinguish False and None for a tri-state variable that can have
> 3 values - "yes", "no" and "unspecified" - True, False and None in
> Python-speak.

Er, not quite best practice. As any DailyWTFer knows, the correct
third value for a boolean is FileNotFound.



More information about the Python-ideas mailing list