bpo-44232: Fix type_new() error reporting (GH-26359) (GH-26365)
Fix a regression in type() when a metaclass raises an exception. The C function type_new() must properly report the exception when a metaclass constructor raises an exception and the winner class is not the metaclass. (cherry picked from commit bd199e72fb60a8ff001a023f23925092a290be91) Co-authored-by: Victor Stinner <vstinner@python.org>
M
Miss Islington (bot) committed
7b3b6982a5683f5146ede58a448d3edb777e501b
Parent: 2442b34
Committed by GitHub <noreply@github.com>
on 5/26/2021, 9:30:55 AM