diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2023-10-18 04:14:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-18 04:14:52 -0400 |
commit | baefbb21d91db2d950706737a6ebee9b2eff5c2d (patch) | |
tree | b667e758572b247d244afddd11fcdcb4d3466106 /Lib/idlelib/debugger.py | |
parent | 77dbd956090aac66e264d9d640f6adb6b0930b87 (diff) | |
download | cpython-baefbb21d91db2d950706737a6ebee9b2eff5c2d.tar.gz cpython-baefbb21d91db2d950706737a6ebee9b2eff5c2d.zip |
gh-103737: IDLE - Remove unneeded .keys() for dict iteration (#110960)
Add comments where .keys() is needed.
Leave debugger usages along because situation is unclear as indicated in expanded comment.
Most testing is manual.
Diffstat (limited to 'Lib/idlelib/debugger.py')
-rw-r--r-- | Lib/idlelib/debugger.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/debugger.py b/Lib/idlelib/debugger.py index 452c62b4265..a92bb98d908 100644 --- a/Lib/idlelib/debugger.py +++ b/Lib/idlelib/debugger.py @@ -509,7 +509,7 @@ class NamespaceViewer: # There is also an obscure bug in sorted(dict) where the # interpreter gets into a loop requesting non-existing dict[0], # dict[1], dict[2], etc from the debugger_r.DictProxy. - ### + # TODO recheck above; see debugger_r 159ff, debugobj 60. keys_list = dict.keys() names = sorted(keys_list) ### |