[Python-Dev] ',' precedence in documentation] (original) (raw)
Steven D'Aprano steve at pearwood.info
Tue Sep 16 00:46:53 CEST 2008
- Previous message: [Python-Dev] ',' precedence in documentation]
- Next message: [Python-Dev] ',' precedence in documentation]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] ',' precedence in documentation]
- Next message: [Python-Dev] ',' precedence in documentation]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]