[Python-Dev] Requesting pronouncement on PEP 463: Exception-catching expressions (original) (raw)

Brett Cannon brett at python.org
Wed Mar 12 16:21:22 CET 2014


On Wed, Mar 12, 2014 at 11:16 AM, Chris Angelico <rosuav at gmail.com> wrote:

On Thu, Mar 13, 2014 at 2:14 AM, Brett Cannon <brett at python.org> wrote: > While I'm +0 on the idea, I'm -1 on the syntax; I just don't like having a > colon in an expression.

Which is why there are alternatives listed, and the best four of them (including the proposed one) ranked.

value = (expr except Exception then default) would be fine with me. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20140312/3ca8e034/attachment.html>



More information about the Python-Dev mailing list