-
- Downloads
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 bd199e72) Co-authored-by:Victor Stinner <vstinner@python.org>
Showing
- Lib/test/test_types.py 18 additions, 0 deletionsLib/test/test_types.py
- Misc/NEWS.d/next/Core and Builtins/2021-05-25-18-20-10.bpo-44232.DMcCCf.rst 4 additions, 0 deletions...ore and Builtins/2021-05-25-18-20-10.bpo-44232.DMcCCf.rst
- Objects/typeobject.c 4 additions, 0 deletionsObjects/typeobject.c
Loading
Please register or sign in to comment