Logan added the comment:

@berker.peksag: Good catch, thank you.  In my code base I'm using a slightly 
different implementation which does use an iterator, so I didn't even catch 
that the default django example was incorrect.

@skip.montanaro: That is exactly the one-liner I'm currently using.  Thank you 
for documenting it here in case anyone else is looking for the same.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27497>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to