Post

Memphis now supports the Python protocol for the dict() builtin. dict([('b', 4), ('c', 5)]) dict([['a', 1], ['b', 2]]) dict((k, k*k) for k in range(3)) dict(zip(['one', 'two', 'three'], [1, 2, 3])) An iterable containing another iterable which yields exactly 2 elements. This one was fun!

No replies yet.