Browse Source

none-filtering iterator for GrowingList

devel
Stefan Holst 9 months ago
parent
commit
3a8777e0a3
  1. 5
      src/kyupy/circuit.py

5
src/kyupy/circuit.py

@ -40,6 +40,11 @@ class GrowingList(list): @@ -40,6 +40,11 @@ class GrowingList(list):
self.has_nones = fi < len(self)
return fi
def without_nones(self):
for item in self:
if item is not None:
yield item
class IndexList(list):
def __delitem__(self, index):

Loading…
Cancel
Save