Make some things clearer about lazy contexts

This commit is contained in:
Dave Halter committed 2018-01-31 23:52:56 +01:00
1 parent ebe8123b4c
commit 24b4e725b5
3 files changed
+6 -7

No files matched your search

+1 -1
View File
@@ -91,7 +91,7 @@ class Generator(GeneratorMixin, Context):
self._func_execution_context = func_execution_context
def py__iter__(self):
return self._func_execution_context.get_yield_values()
return self._func_execution_context.get_yield_lazy_contexts()
def __repr__(self):
return "<%s of %s>" % (type(self).__name__, self._func_execution_context)