mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-30 23:41:06 -05:00
Added __len__ to set.
This commit is contained in:
parent
ea787b8441
commit
20032a089a
@ -120,6 +120,9 @@ class set(object):
|
||||
for x in t:
|
||||
self.d[x] = None
|
||||
|
||||
def __len__(self):
|
||||
return len(self.d)
|
||||
|
||||
def add(self, x):
|
||||
self.d[x] = None
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user