Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment: I prefer the existing code too.
But I'm surprised that this change has a measurable effects at all. I thought that creating a closure is cheaper. Of course it is much faster than creating a class. Maybe it is worth to spend some time for optimizing closure creation. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31753> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com