mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +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:
|
for x in t:
|
||||||
self.d[x] = None
|
self.d[x] = None
|
||||||
|
|
||||||
|
def __len__(self):
|
||||||
|
return len(self.d)
|
||||||
|
|
||||||
def add(self, x):
|
def add(self, x):
|
||||||
self.d[x] = None
|
self.d[x] = None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user