PEP 308: Alternative conditional operator forms -- Corner Case solved
Tue Feb 11 22:32:10 CET 2003
"Samuele Pedroni" <pedronis at bluewin.ch> writes:
> I consider that possibility a mixed bless, I would rather (if we should have
> one) have a conditional operator that looks operatorial and in the same
> of 'and'/'or'. Why?
> Because the fact that Python distinguishes statements and expressions is
> basically, apart from being the status quo and what is implemented, a
> _deliberate_ decision, that happens to work well together with
> indentation-delimited blocks.
Algol-60 made the same distinction, yet allowed if-else in arithmetic
expressions similar to this proposal. Are you saying this was a
shortcoming in Algol-60? I never thought of it as one. (I've written
some Algol-60 code, though not an enormous amount).
More information about the Python-list