• Rudi Chen's avatar
    Assign allocation function directly to tp_new. · 79eea221
    Rudi Chen authored
    This fixes infinite recursion bugs when C extensions inherit from
    these built-in types where the C extension allocation function calls
    the base tp_new, which does an attribute lookup, which finds the
    C extension allocation function again.
    79eea221
str.cpp 96.1 KB