Skip to content

Commit

Permalink
Merge branch 'main' into better_loop_around_nest_map
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jan 13, 2022
2 parents 36a1a2f + d6b8fb9 commit f10f24c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions loopy/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,12 @@ def insert(self, key, value):
def __getstate__(self):
return {"_list": [_PickledObject(val) for val in self._list]}

def __add__(self, other):
return self._list + other

def __mul__(self, other):
return self._list * other


class LazilyUnpicklingListWithEqAndPersistentHashing(LazilyUnpicklingList):
"""A list which lazily unpickles its values, and supports equality comparison
Expand Down

0 comments on commit f10f24c

Please sign in to comment.