Lichen

tests/dicts.py

203:e28858d7f9d5
2016-11-21 Paul Boddie Added alias serialisation in order to preserve origin information for imported instances in the cached data.
     1 def f(d):     2     return d.keys()     3      4 def g(d):     5     for key, value in d.items():     6         return value     7      8 d = {"a" : 1, "b" : 2}     9 f(d) # ["a", "b"]    10 g(d) # either 1 or 2