Rename "dictionary" (type and constructor) to "dict".

This commit is contained in:
Tim Peters 2001-10-29 22:25:45 +00:00
parent 7ad2d1eb8e
commit a427a2b8d0
10 changed files with 66 additions and 63 deletions

View file

@ -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 '{...}'