Yury Selivanov added the comment: Victor,
During the code review we tried the single loop approach. At the end Joshua wrote a small benchmark to test if it's really faster to do it in one loop or not. Turned out that single loop approach is not faster than loop+comprehension (but it's not much slower either, I'd say they are about the same in terms of speed). One loop approach might work faster on PyPy, but unfortunately, they still don't support 3.3 to test. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22448> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com