Feature/len (#68)

* Add __len__ to discrete

* Add __len__ to tuple
This commit is contained in:
moto
2016-05-09 17:59:55 -07:00
committed by Greg Brockman
parent 9529fa731b
commit 705d024993
2 changed files with 5 additions and 0 deletions

View File

@@ -21,3 +21,5 @@ class Discrete(Space):
return "Discrete(%d)" % self.n
def __eq__(self, other):
return self.n == other.n
def __len__(self):
return n