isi-vista / immutablecollections

A library for immutable collections, in the spirit of Guava's Immutable Collections.
MIT License
3 stars 1 forks source link

ImmutableDict does not correctly repr its keys and values #31

Closed gabbard closed 5 years ago

gabbard commented 5 years ago
x = immutabledict([("foo", "bar"), ("lala", "alal")])
i{foo: bar, lala: alal}
y = {"foo" : "bar", "lala" : "alal"}
{'foo': 'bar', 'lala': 'alal'}
qpwo commented 5 years ago

Fixed

>>> immutabledict({"foo": "bar", 5: 6, ("a", "tuple"): 37})
i{'foo': 'bar', 5: 6, ('a', 'tuple'): 37}