[Python-Dev] Requesting pronouncement on PEP 463: Exception-catching expressions

Chris Angelico rosuav at gmail.com
Wed Mar 12 17:05:21 CET 2014


On Thu, Mar 13, 2014 at 2:44 AM, Barry Warsaw <barry at python.org> wrote:
> That being said, the colon really bothers me, despite what is written in
> "Common objections".  True, colons are used in places other than suite
> introduction, but with exception handling, colons *do* introduce a new suite,
> so its use here is jarring.  There may also be tooling issues (e.g. editors,
> syntax colorizers, parsers, etc.).

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).

ChrisA


More information about the Python-Dev mailing list