You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Index equality raises or reports equality when comparing non-mappings #387
A populated Index compared with a same-length list raises AttributeError because lists have no get(). Both equality methods should return NotImplemented for non-mappings so Python can try reflected comparisons, as MutableMapping does. Existing order-sensitive Index/OrderedDict comparisons and order-insensitive ordinary mapping comparisons should remain unchanged.
I reproduced 17 regression failures and prepared a focused fix with mapping compatibility controls. This is separate from #378, which handles missing-key sentinel collisions between mappings. Found through code inspection with OpenAI Codex assistance; no production incident is claimed.
Activity