mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
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.
This commit is contained in:
parent
77dbd95609
commit
baefbb21d9
8 changed files with 28 additions and 26 deletions
|
@ -93,7 +93,8 @@ class SequenceTreeItem(ObjectTreeItem):
|
|||
|
||||
class DictTreeItem(SequenceTreeItem):
|
||||
def keys(self):
|
||||
keys = list(self.object.keys())
|
||||
# TODO return sorted(self.object)
|
||||
keys = list(self.object)
|
||||
try:
|
||||
keys.sort()
|
||||
except:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue