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
gh-150165: Clarify membership test semantics for hash-based containers and object identity
Split the membership test equivalence in §6.10.2 to distinguish
sequence types (linear scan) from hash-based containers (hash lookup).
Add a note acknowledging that the x is e check has observable
consequences for NaN and state-dependent __eq__, and that object
identity is unspecified for non-literal expressions.
Also add a clarifying sentence in §6.2.3.1 noting that non-literal
expressions make no identity guarantees.
0 commit comments