(test) ? a:b

Ben Finney ben+python at benfinney.id.au
Mon Oct 27 03:28:38 CET 2014

Joshua Landau <joshua at landau.ws> writes:

> Guido van Rossum answered Jul 28 '11 at 21:20,
> http://stackoverflow.com/questions/3174392/is-it-pythonic-to-use-bools-as-ints
> > False==0 and True==1, and there's nothing wrong with that.

Guido is incorrect. I've already stated what's wrong.

That's different from saying I want to change how Python behaves *now*,
of course. But to say “there's nothing wrong with that” dismisses the
problems without addressing them. Guido isn't perfect, so that's okay.

 \        “Telling pious lies to trusting children is a form of abuse, |
  `\                    plain and simple.” —Daniel Dennett, 2010-01-12 |
_o__)                                                                  |
Ben Finney

More information about the Python-list mailing list