Author serhiy.storchaka
Recipients Alistair, docs@python, martin.panter, serhiy.storchaka
Date 2018-12-10.10:05:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1544436309.84.0.788709270274.issue35446@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-12-10 10:05:09serhiy.storchakasetrecipients: + serhiy.storchaka, docs@python, martin.panter, Alistair
2018-12-10 10:05:09serhiy.storchakasetmessageid: <1544436309.84.0.788709270274.issue35446@psf.upfronthosting.co.za>
2018-12-10 10:05:09serhiy.storchakalinkissue35446 messages
2018-12-10 10:05:09serhiy.storchakacreate