mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
gh-96905: In IDLE code, stop redefining built-ins 'dict' and 'object' (#114227)
Prefix 'dict' with 'o', 'g', or 'l' for 'object', 'global', or 'local'. Suffix 'object' with '_'.
This commit is contained in:
parent
8cda72037b
commit
6f4b242a03
8 changed files with 45 additions and 42 deletions
|
@ -79,6 +79,7 @@ class Get_argspecTest(unittest.TestCase):
|
|||
tiptest(list.append, '(self, object, /)' + append_doc)
|
||||
tiptest(List.append, '(self, object, /)' + append_doc)
|
||||
tiptest([].append, '(object, /)' + append_doc)
|
||||
# The use of 'object' above matches the signature text.
|
||||
|
||||
tiptest(types.MethodType,
|
||||
'(function, instance, /)\n'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue