[docs] Incorrect statement in section 8.3 of Python Tutorial

Randy Duncan randy.duncan at ibm.com
Mon Nov 27 14:19:58 EST 2017


I believe I found an erroneous statement in the Python tutorials.

In section 8.3 found here (https://docs.python.org/3.6/tutorial/errors.html
)

There is a section showing how to handle exceptions which works as
advertised:



However, the next line in the tutorial state this:


Note that if the except clauses were reversed (with except B first), it
would have printed B, B, B — the first matching except clause is triggered.


I re-entered the example and reversed the except clauses, and got this
result which does not match the statement:





Best regards,
Randy Duncan

______________________________________________________________

Randy Duncan,   PMP PMI-ACP CSM
Test Architect, IBM Cloud Infrastructure Core Fabric Team
14001 Dallas Parkway, Suite M100, Dallas, TX 75240
214-873-8316 Office | 469-360-7232 Cell | randy.duncan at ibm.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20171127/834ef2a8/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1A422273.gif
Type: image/gif
Size: 19921 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/docs/attachments/20171127/834ef2a8/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1A363088.gif
Type: image/gif
Size: 4629 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/docs/attachments/20171127/834ef2a8/attachment-0003.gif>


More information about the docs mailing list