Terry J. Reedy <tjre...@udel.edu> added the comment:
Delete 2. 'list' is needed if for-suite mutates the dict all 6 either directly or maybe indirectly do so. Not worth checking unless otherwise editing the function. 6. N unneeded .keys() (out of 13 occurrences) when iterating dict. Low priority. First patch does 1. and 5. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43013> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com