Skip to content
Snippets Groups Projects
Commit 273d9620 authored by Dan Michael O. Heggø's avatar Dan Michael O. Heggø
Browse files

Refactor List.__next__

To avoid stuff like #135 from happening, make it more transparent what's
going on in `List.__next__` by
- replacing the check for `full=True` with
  `isinstance(self, GeneratorList)`
- replacing the recursive call to `List.__next__` with
  `item = six.next(self._iter)`. This means one line of code is
  duplicated, but I think it's pays of in term of readability.
parent c4de7069
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment