Am 06.05.2016 um 16:46 schrieb john:
On 05/06/2016 07:43 AM, john wrote:
BTW here is the source for __iter__
Which __iter__, in which class?
def__iter__(self):ifself._prefetch:res =super(DictCursorBase,self).__iter__()first =res.next()ifself._query_executed:self._build_index()ifnotself._prefetch:res =super(DictCursorBase,self).__iter__()first =res.next()yieldfirst while1:yieldres.next()
This has been badly mangled on the way, as you see. I failed to restore the missing indentation at the second "if". Could you try again, or tell me where this comes from?
Thank you, Sibylle