mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-14 12:47:22 -04:00
remove method on HashSet
This commit is contained in:
@@ -135,6 +135,8 @@ class HashSet(object):
|
||||
self.map.clear()
|
||||
def append(self, item):
|
||||
self.map[item] = item
|
||||
def remove(self, item):
|
||||
del self.map[item]
|
||||
def __add__(self, other):
|
||||
return HashSet(self.map.values() + [i for i in other])
|
||||
def __len__(self):
|
||||
|
||||
Reference in New Issue
Block a user