• Kevin Modzelewski's avatar
    Fix some bugs that made None createable · 0eca1ddb
    Kevin Modzelewski authored
    Copy over tp_new_wrapper, which is the main thing that should be doing the check.
    Our implementation was pretty much the same minus that check.
    
    There's also a separate check that isn't completely necessary but seems like a good idea,
    and we had it on certain codepaths, and whether you hit it depended on whether you were
    in CAPI mode or not.
    0eca1ddb
none__class__.py 200 Bytes