mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-12 11:31:03 +01: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