mirror of
https://github.com/python/cpython.git
synced 2025-08-09 11:29:45 +00:00
[3.12] gh-96905: In IDLE code, stop redefining built-ins 'dict' and 'object' (GH-114227) (#114228)
Prefix 'dict' with 'o', 'g', or 'l' for 'object', 'global', or 'local'.
Suffix 'object' with '_'.
(cherry picked from commit 6f4b242a03
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
35e330ba85
commit
e7a5577b53
8 changed files with 45 additions and 42 deletions
|
@ -158,8 +158,8 @@ class SocketIO:
|
|||
s = s + " " + str(a)
|
||||
print(s, file=sys.__stderr__)
|
||||
|
||||
def register(self, oid, object):
|
||||
self.objtable[oid] = object
|
||||
def register(self, oid, object_):
|
||||
self.objtable[oid] = object_
|
||||
|
||||
def unregister(self, oid):
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue