[issue22243] Documentation on try statement incorrectly implies target of except clause can be any assignable expression
Jayanth Koushik
report at bugs.python.org
Sat Aug 23 07:30:43 CEST 2014
Jayanth Koushik added the comment:
The page on compound statements defines compound statements as:
compound_stmt ::= if_stmt
| while_stmt
| for_stmt
| try_stmt
| with_stmt
| funcdef
| classdef
The full grammar specification on the other hand says:
compound_stmt: if_stmt | while_stmt | for_stmt | try_stmt | with_stmt | funcdef | classdef | decorated
This accordingly leads to different definitions of funcdef and classdef. This is not necessarily 'incorrect', but for the sake of clarity, it might be better if both pages followed the same conventions.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22243>
_______________________________________
More information about the Python-bugs-list
mailing list