[Python-Dev] Fwd: Requesting pronouncement on PEP 463: Exception-catching expressions (original) (raw)
Jeremy Kloth jeremy.kloth at gmail.com
Wed Mar 12 17:29:20 CET 2014
- Previous message: [Python-Dev] Requesting pronouncement on PEP 463: Exception-catching expressions
- Next message: [Python-Dev] Requesting pronouncement on PEP 463: Exception-catching expressions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[resending to list]
---------- Forwarded message ---------- From: Jeremy Kloth <jeremy.kloth at 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 at gmail.com>
On Wed, Mar 12, 2014 at 10:05 AM, Chris Angelico <rosuav at 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
- Previous message: [Python-Dev] Requesting pronouncement on PEP 463: Exception-catching expressions
- Next message: [Python-Dev] Requesting pronouncement on PEP 463: Exception-catching expressions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]