tracktable.core.misc module¶
Module contents¶
tracktable.core.misc - Stuff that doesn’t yet fit anywhere else
-
class
tracktable.core.misc.
IterableWrapper
(inner_iter)[source]¶ Bases:
object
Wrap up an iterable for later use
When assembling a data flow pipeline we would like to separate the actions of hooking up the pipeline and reading data from it.
-
next
()¶ Internal method
This is how Python objects iterate. You get things from them by calling __next__() over and over until they raise StopIteration to tell you that there’s nothing left.
NOTE: This has changed in Python 3.7. The proper way to return from a generator is now ‘return’ instead of ‘raise StopIteration()’. See PEP 0479 for the details:
https://www.python.org/dev/peps/pep-0479/
- Returns
Whatever the inner iterator returns
- Raises
-