mirror of
https://github.com/progval/Limnoria.git
synced 2025-05-01 07:51: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:
|
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…
x
Reference in New Issue
Block a user