This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mwilliamson
Recipients docs@python, mwilliamson
Date 2014-08-21.15:55:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1408636555.03.0.716837203109.issue22243@psf.upfronthosting.co.za>
In-reply-to
Content
In the docs for the try statement [1], part of the grammar is:

try1_stmt ::=  "try" ":" suite
               ("except" [expression ["as" target]] ":" suite)+
               ["else" ":" suite]
               ["finally" ":" suite]

The `target` rule allows any assignable expression (identifier, attributes, etc.). However, CPython appears to only allow identifiers as a target. The abstract grammar in the ast module [2] appears to confirm this.

[1] https://docs.python.org/3.4/reference/compound_stmts.html#the-try-statement
[2] https://docs.python.org/3.4/library/ast.html#abstract-grammar
History
Date User Action Args
2014-08-21 15:55:55mwilliamsonsetrecipients: + mwilliamson, docs@python
2014-08-21 15:55:55mwilliamsonsetmessageid: <1408636555.03.0.716837203109.issue22243@psf.upfronthosting.co.za>
2014-08-21 15:55:54mwilliamsonlinkissue22243 messages
2014-08-21 15:55:54mwilliamsoncreate