[Python-ideas] Programming recommendations (PEP 8) and boolean values
Oleg Broytman
phd at phdru.name
Thu Aug 9 11:40:03 CEST 2012
On Thu, Aug 09, 2012 at 03:24:59PM +1200, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> 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.
Unavoidable. E.g. in SQL a boolean column stores True, False and None
(SQL NULL).
Oleg.
--
Oleg Broytman http://phdru.name/ phd at phdru.name
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-ideas
mailing list