diff options
Diffstat (limited to 'Lib/copy.py')
-rw-r--r-- | Lib/copy.py | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/Lib/copy.py b/Lib/copy.py index 527759f..37e35cf 100644 --- a/Lib/copy.py +++ b/Lib/copy.py @@ -318,11 +318,11 @@ def _test(): l = [None, 1, 2, 3.14, 'xyzzy', (1, 2), [3.14, 'abc'], {'abc': 'ABC'}, (), [], {}] l1 = copy(l) - print l1==l + print(l1==l) l1 = map(copy, l) - print l1==l + print(l1==l) l1 = deepcopy(l) - print l1==l + print(l1==l) class C: def __init__(self, arg=None): self.a = 1 @@ -346,26 +346,26 @@ def _test(): c = C('argument sketch') l.append(c) l2 = copy(l) - print l == l2 - print l - print l2 + print(l == l2) + print(l) + print(l2) l2 = deepcopy(l) - print l == l2 - print l - print l2 + print(l == l2) + print(l) + print(l2) l.append({l[1]: l, 'xyz': l[2]}) l3 = copy(l) import repr - print map(repr.repr, l) - print map(repr.repr, l1) - print map(repr.repr, l2) - print map(repr.repr, l3) + print(map(repr.repr, l)) + print(map(repr.repr, l1)) + print(map(repr.repr, l2)) + print(map(repr.repr, l3)) l3 = deepcopy(l) import repr - print map(repr.repr, l) - print map(repr.repr, l1) - print map(repr.repr, l2) - print map(repr.repr, l3) + print(map(repr.repr, l)) + print(map(repr.repr, l1)) + print(map(repr.repr, l2)) + print(map(repr.repr, l3)) if __name__ == '__main__': _test() |