Fwd: Requesting pronouncement on PEP 463: Exception-catching expressions

[resending to list] ---------- Forwarded message ---------- From: Jeremy Kloth <jeremy.kloth@gmail.com> Date: Wed, Mar 12, 2014 at 10:27 AM Subject: Re: [Python-Dev] Requesting pronouncement on PEP 463: Exception-catching expressions To: Chris Angelico <rosuav@gmail.com> On Wed, Mar 12, 2014 at 10:05 AM, Chris Angelico <rosuav@gmail.com> wrote:
Tooling issues should already have been solved for lambda, but if you don't like the colon, go with one of the other options - Brett expressed support for 'then', which makes very good sense (it does require creating a new keyword, but it's a fairly safe one).
Just to note, if a token is desired, it could be treated as a pseudo-keyword much like 'as' was prior to 2.6 (or 2.5 with future 'with_statement'). That is, it is only treated as a keyword when parsing the expression defining its use. With that, the list of available "keywords" becomes much broader. -- Jeremy Kloth
participants (1)
-
Jeremy Kloth