[Python-ideas] except expression

Ram Rachum ram at rachum.com
Thu Feb 13 12:54:04 CET 2014


On Thu, Feb 13, 2014 at 1:50 PM, Chris Angelico <rosuav at gmail.com> wrote:

> On Thu, Feb 13, 2014 at 10:36 PM, Paul Moore <p.f.moore at gmail.com> wrote:
> > Personally, I quite like "EXPR except EXCEPTIONTYPE return VALUE" if
> > we have to stick with existing keywords. If I had free rein I might go
> > for a new keyword "then" instead of "return".
>
> Hmm. Stupid idea:
>
> EXPR expr EXCEPTIONTYPE pass VALUE
>
> Passing something is kinda like returning it, right? *ducks the rotten
> tomatoes*
>

http://i.imgur.com/xk003.gif


>
> ChrisA
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
> --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "python-ideas" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python-ideas/ZoBGdwuH3uk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> python-ideas+unsubscribe at googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140213/50b8a9a5/attachment.html>


More information about the Python-ideas mailing list