Commit fcbb2553 authored by Sam Rushing's avatar Sam Rushing

fifo: add __iter__.

parent 0f4547dd
...@@ -730,6 +730,9 @@ cdef class fifo: ...@@ -730,6 +730,9 @@ cdef class fifo:
def __len__ (self): def __len__ (self):
return self.fifo.size return self.fifo.size
def __iter__ (self):
return self.fifo.__iter__()
def push (self, thing): def push (self, thing):
"""Push an object to the end of the FIFO. """Push an object to the end of the FIFO.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment