Ternary Operator in Python
Sean Kemplay
skemplay at gmail.com
Fri Apr 1 05:48:52 EST 2005
On Apr 1, 2005 8:10 PM, Erik Max Francis <max at alcyone.com> wrote:
> Sean Kemplay wrote:
>
> > You could use
> >
> > condition and consequent or alternative
> >
> > I use it
>
> You should do so cautiously, since if consequent is false, it will not
> behave as suspected. Not to mention that it's quite unreadable.
>
> --
> Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
> San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
> Physics, as we know it, will be over in six months.
> -- Max Born (1928)
> --
> http://mail.python.org/mailman/listinfo/python-list
>
I should have mentioned that, as I have been caught out before.
Sean
More information about the Python-list
mailing list