PEP308: Yet another syntax proposal
Terry Reedy
tjreedy at udel.edu
Wed Feb 12 13:39:51 EST 2003
"Michael Hudson" <mwh at python.net> wrote in message
news:7h3wuk5wqri.fsf at pc150.maths.bris.ac.uk...
> Paul Rubin <http://phr.cx@NOSPAM.invalid> writes:
>
> > I don't see it that way. I see a camp that wants a clear,
definite,
> > explicit way to express a conditional expression, and a camp that
> > prefers "Secret Master Pythonista" bizarre idioms like "x and y or
z,
> > with rework required if it turns out that y can be None or 0 or
the
> > empty list".
>
> Well, then you have to explain me.
I agree that Paul's camp2 slightly mischaracterizes the opposition.
In fact, I don't know of any current user of and/or who prefers it to
all possible alternatives.
> I don't think the addition of any of the proposed conditional
> expressions to Python would be a good thing.
>
> I *do not* prefer the "_ and _ or _" abomin^Widiom.
So you are in the unenviable position of having to either abstain or
decide which alternative is least abominable ;-).
Terry J. Reedy
More information about the Python-list
mailing list