[Python-ideas] except expression

Chris Angelico rosuav at gmail.com
Mon Feb 17 16:08:53 CET 2014


On Tue, Feb 18, 2014 at 2:00 AM, M.-A. Lemburg <mal at egenix.com> wrote:
> x = 1, 2,
> x = {1:2,}

Actually, a more confusing pair than those is this:

x = {1,2,}
x = {1:2,}

In terms of the "grit on the screen syntax" problem, this one is at
some risk. My currently-preferred proposal for exceptions makes good
use of the 'except' keyword, so it should be fairly clear what's going
on.

ChrisA


More information about the Python-ideas mailing list