Georg Brandl added the comment: Attached patch addresses the repeated __repr__ calling and gives a 4x speedup here.
---------- keywords: +patch Added file: http://bugs.python.org/file36985/whichmodule_speedup.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22676> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com