[docs] [issue35446] incorrect example
Martin Panter
report at bugs.python.org
Mon Dec 10 04:42:41 EST 2018
Martin Panter <vadmium+py at gmail.com> added the comment:
It doesn’t make sense to move the “except” line without moving the matching “print” line. According to <https://docs.python.org/3.7/reference/compound_stmts.html#index-1>, “A clause consists of a header and a ‘suite’.” So when it talks about reversing the “except” clauses, that includes reversing the corresponding “print” lines, so they condinue to identify which exception handler was triggered.
----------
nosy: +martin.panter
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35446>
_______________________________________
More information about the docs
mailing list