Raymond Hettinger added the comment: One further possible transformation is to inline set_lookkey_dummy_allowed() inside set_insert_key() which is the only place it is used. That saves all the test and branch code inside the latter (all that code does is reconstruct the exit points for set_lookkey_dummy_allowed() which were already known).
---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23359> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com