Closed
Description
Crash report
What happened?
The interpreter will abort when a new type is created using an instance of a subclass of tuple
as the bases
parameter due to a PyTuple_CheckExact(bases)
assertion:
class weird_tuple(tuple): pass
c = type("c", weird_tuple((str,)), {})
python: Objects/typeobject.c:500: set_tp_bases: Assertion `PyTuple_CheckExact(bases)' failed.
Aborted (core dumped)
Found using fusil by @vstinner.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
Python 3.14.0a6+ (heads/main:04bc681e7cf, Apr 4 2025, 12:38:19) [GCC 11.4.0]