Comprehension lookups are now more precise.

This commit is contained in:
Dave Halter
2015-11-10 22:31:50 +01:00
parent 306d274a3d
commit f1c827821b

View File

@@ -61,7 +61,7 @@ class GeneratorMixin(object):
Exact lookups are used for tuple lookups, which are perfectly fine if
used with generators.
"""
return set([list(self.iter_content())[index]])
return list(self.py__iter__())[index]
def py__bool__(self):
return True