Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
The example is correct. If the except clauses were reversed for cls in [B, C, D]: try: raise cls() except B: print("B") except C: print("C") except D: print("D") it would have printed B, B, B. ---------- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35446> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com