Raymond Hettinger <raymond.hettinger at gmail.com> added the comment: Speed-up or not, I concur that the new code it clearer. ---------- nosy: +rhettinger _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue39737> _______________________________________