[Python-Dev] "and" and "or" operators in Py3.0
BJörn Lindqvist
bjourne at gmail.com
Tue Sep 20 18:02:38 CEST 2005
> >> While you're at it, maybe we should switch to && and || as well?
> >> That's another thing I always mistype when switching between
> >> languages...
> >
> > You're joking, surely?
>
> for Python 3000, I'd recommend switching to "and then" and "or else" instead
> of the current ambiguous single-keyword versions.
Wouldn't it be possible to omit "and" and "or" to just "then" and "else"?
x = 3 and 7 or 44
x = 3 and then 7 or else 44
x = 3 then 7 else 44
And then have another set of and and or for non short-circuiting?
--
mvh Björn
More information about the Python-Dev
mailing list