[Python-ideas] except expression
Alexander Belopolsky
alexander.belopolsky at gmail.com
Tue Feb 18 15:27:50 CET 2014
On Tue, Feb 18, 2014 at 9:07 AM, Paul Moore <p.f.moore at gmail.com> wrote:
> Also, "expr except fallback" is a very simple case of a keyword-based
> binary operation.
>
I agree and ISTM a natural generalization of this to allow exception type
specification would be
expr except(Exc1, Exc2) fallback
or
expr except[Exc1, Exc2] fallback
I am not sure if any of these have been proposed, so apologies if they were.
This said, I would still prefer the variant with the column as the closest
to the existing syntax.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140218/d21b1cf3/attachment-0001.html>
More information about the Python-ideas
mailing list