[docs] [issue22243] Documentation on try statement incorrectly implies target of except clause can be any assignable expression

Terry J. Reedy report at bugs.python.org
Fri Aug 22 22:59:43 CEST 2014


Terry J. Reedy added the comment:

I think 'target' can just be replaced by 'identifier'.
Using 'expression' (or 'expr' in the ast doc) for what should be 'exceptions: identifier' or paranthesized tuple of identifiers;, is also too broad. However, that must be enforced in the compiler rather than the parser, and compiler restrictions are in the text, not the grammar.

----------
nosy: +terry.reedy

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22243>
_______________________________________


More information about the docs mailing list