OLD | NEW |
(Empty) | |
| 1 # A105 |
| 2 list([1]) |
| 3 # A105 |
| 4 list((1,)) |
| 5 # A105 |
| 6 tuple([1]) |
| 7 # A105 |
| 8 tuple((1,)) |
| 9 # A105 |
| 10 set([1]) |
| 11 # A105 |
| 12 set((1,)) |
| 13 # A105 |
| 14 dict([]) |
| 15 # A105 |
| 16 dict([[1, 1]]) |
| 17 # A105 |
| 18 dict([(1, 1)]) |
| 19 # A105 |
| 20 dict(()) |
| 21 # A105 |
| 22 dict(((1, 1),)) |
| 23 # A105 |
| 24 dict(([1, 1],)) |
| 25 |
| 26 # A105 |
| 27 list([x for x in range(10)]) |
| 28 # A105 |
| 29 list(x for x in range(10)) |
| 30 # A105 |
| 31 set([x for x in range(10)]) |
| 32 # A105 |
| 33 set(x for x in range(10)) |
| 34 # A105 |
| 35 dict([(x, x) for x in range(10)]) |
| 36 # A105 |
| 37 dict([[x, x] for x in range(10)]) |
| 38 # A105 |
| 39 dict((x, x) for x in range(10)) |
| 40 # A105 |
| 41 dict([x, x] for x in range(10)) |
| 42 |
| 43 |
| 44 def make_dict(x): |
| 45 dict(x) |
| 46 dict([x]) |
| 47 dict((x,)) |
| 48 dict([pair for pair in x]) |
| 49 dict(pair for pair in x) |
| 50 |
| 51 |
| 52 def make_unique(x): |
| 53 tuple({y for y in x}) |
| 54 list({y for y in x}) |
| 55 |
| 56 |
| 57 tuple([x for x in range(10)]) |
| 58 tuple(x for x in range(10)) |
| 59 tuple({x for x in range(10)}) |
OLD | NEW |