mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Rename "dictionary" (type and constructor) to "dict".
This commit is contained in:
parent
7ad2d1eb8e
commit
a427a2b8d0
10 changed files with 66 additions and 63 deletions
|
|
@ -48,7 +48,7 @@ class Repr:
|
|||
s = s + self.repr1(x[i], level-1)
|
||||
if n > self.maxlist: s = s + ', ...'
|
||||
return '[' + s + ']'
|
||||
def repr_dictionary(self, x, level):
|
||||
def repr_dict(self, x, level):
|
||||
n = len(x)
|
||||
if n == 0: return '{}'
|
||||
if level <= 0: return '{...}'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue