Ran Benita <r...@unusedvar.com> added the comment:
Hmm I realize after the fact that since the equivalent code snippet (which is actually the implementation) is a generator, then it is actually correct that prepare() isn't called until it is iterated. So the documentation for this is not incorrect. Still, I think it would be better if the prepare() executes immediately rather than in the first iteration. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42588> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com