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
Copying a Python tuple shares mutable field storage #8270
Constructing a Tuple from another Tuple reuses the same internal ordered dictionary. Assigning a field on either tuple therefore changes the other tuple as well. An operator that creates and edits a derived tuple can silently mutate its input row.
Before: copied tuples share field storage and leak assignments in both directions.
Expected: a tuple copy starts with the same fields but has independent field mapping storage.
Reproduction evidence:
Create original = Tuple({"x": 1}).
Create copied = Tuple(original).
Assign copied["x"] = 2 and observe that original["x"] also becomes 2.
Activity
carloea2 commentedon Sep 5, 2026
/take
feat(pyamber): isolate tuple copy storage (apache#8271)