• Tim Peters's avatar
    Reimplement PySequence_Contains() and instance_contains(), so they work · cb8d368b
    Tim Peters yazdı
    safely together and don't duplicate logic (the common logic was factored
    out into new private API function _PySequence_IterContains()).
    Visible change:
        some_complex_number  in  some_instance
    no longer blows up if some_instance has __getitem__ but neither
    __contains__ nor __iter__.  test_iter changed to ensure that remains true.
    cb8d368b
abstract.h 32.4 KB