summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/stackviewer.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-01-18 05:05:00 (GMT)
committerGitHub <noreply@github.com>2024-01-18 05:05:00 (GMT)
commitf49a1ce6b2008d8cccc0bc874f0cc20848004307 (patch)
tree56b0d411261501fe39f610f8178b29ce5f2e19c7 /Lib/idlelib/stackviewer.py
parent4ec2e2eeee44267bc65af2a2f505ef4dcc60365e (diff)
downloadcpython-f49a1ce6b2008d8cccc0bc874f0cc20848004307.zip
cpython-f49a1ce6b2008d8cccc0bc874f0cc20848004307.tar.gz
cpython-f49a1ce6b2008d8cccc0bc874f0cc20848004307.tar.bz2
[3.11] gh-96905: In IDLE code, stop redefining built-ins 'dict' and 'object' (GH-114227) (#114229)
Prefix 'dict' with 'o', 'g', or 'l' for 'object', 'global', or 'local'. Suffix 'object' with '_'. (cherry picked from commit 6f4b242a03e521a55f0b9e440703b424ed18ce2f) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/idlelib/stackviewer.py')
-rw-r--r--Lib/idlelib/stackviewer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/stackviewer.py b/Lib/idlelib/stackviewer.py
index 977c56e..95042d4 100644
--- a/Lib/idlelib/stackviewer.py
+++ b/Lib/idlelib/stackviewer.py
@@ -106,8 +106,8 @@ class VariablesTreeItem(ObjectTreeItem):
value = self.object[key]
except KeyError:
continue
- def setfunction(value, key=key, object=self.object):
- object[key] = value
+ def setfunction(value, key=key, object_=self.object):
+ object_[key] = value
item = make_objecttreeitem(key + " =", value, setfunction)
sublist.append(item)
return sublist