[Python-Dev] ',' precedence in documentation]

Steven D'Aprano steve at pearwood.info
Tue Sep 16 00:46:53 CEST 2008


On Tue, 16 Sep 2008 08:39:42 am Steven D'Aprano wrote:

> I was confused about the role of commas, and totally gobsmacked when
> I discovered that commas make tuples everywhere except when following
> an except statement. (At least that's how I interpreted what I was
> seeing with "try...except A, B, C, e".)

Oops. Except of course the above is a syntax error. I meant:

try...except (A, B, C), e


-- 
Steven


More information about the Python-Dev mailing list