integer >= 1 == True and integer.0 == False is bad, bad, bad!!!
Ian Kelly
ian.g.kelly at gmail.com
Mon Jul 12 23:54:14 EDT 2010
On Mon, Jul 12, 2010 at 9:16 PM, Steven D'Aprano
<steve-REMOVE-THIS at cybersource.com.au> wrote:
> You've seen -1 being used as false? Where? Are you still talking about
> Python builtins or language semantics?
Some of our database tables at work use 1 for true, -1 for false, and
0 for neither. Don't look at me, I didn't design it. Why they didn't
just make the column nullable is beyond me, but that's the way it is.
More information about the Python-list
mailing list