mirror of
https://github.com/python/cpython.git
synced 2026-05-22 04:13:22 -04:00
b02bb5ed0a
Just van Rossum showed a weird, but clever way for pure python code to trigger the BadInternalCall. The C code had assumed that calling a class constructor would return an instance of that class; however, classes that abuse __new__ can invalidate that assumption.