summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/debugger.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-10-18 09:05:08 (GMT)
committerGitHub <noreply@github.com>2023-10-18 09:05:08 (GMT)
commitb8ce5d9c172c7c78b4e97a37f76abae48fb71ef5 (patch)
treec632d19080aeb74485dc1ac8abdebb157be572cf /Lib/idlelib/debugger.py
parent577a8fb72ba182dd2984b66fa8a79ede67bb95e6 (diff)
downloadcpython-b8ce5d9c172c7c78b4e97a37f76abae48fb71ef5.zip
cpython-b8ce5d9c172c7c78b4e97a37f76abae48fb71ef5.tar.gz
cpython-b8ce5d9c172c7c78b4e97a37f76abae48fb71ef5.tar.bz2
[3.12] gh-103737: IDLE - Remove unneeded .keys() for dict iteration (GH-110960) (#111026)
gh-103737: IDLE - Remove unneeded .keys() for dict iteration (GH-110960) Add comments where .keys() is needed. Leave debugger usages along because situation is unclear as indicated in expanded comment. Most testing is manual. (cherry picked from commit baefbb21d91db2d950706737a6ebee9b2eff5c2d) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/idlelib/debugger.py')
-rw-r--r--Lib/idlelib/debugger.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/debugger.py b/Lib/idlelib/debugger.py
index 452c62b..a92bb98 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)
###