MCPcopy Index your code
hub / github.com/django-haystack/django-haystack / __iter__

Method __iter__

haystack/query.py:91–96  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

89 return self._result_count - self._ignored_result_count
90
91 def __iter__(self):
92 if self._cache_is_full():
93 # We've got a fully populated cache. Let Python do the hard work.
94 return iter(self._result_cache)
95
96 return self._manual_iter()
97
98 def __and__(self, other):
99 if isinstance(other, EmptySearchQuerySet):

Callers

nothing calls this directly

Calls 2

_cache_is_fullMethod · 0.95
_manual_iterMethod · 0.95

Tested by

no test coverage detected