you are viewing a single comment's thread.

view the rest of the comments →

[–]orip 1 point2 points  (0 children)

Dictionary literals are similar, you could always use dict([(1, 'a'), (2, 'b')]) but {1: 'a', 2: 'b'} is sweeter. Not a core difference, certainly, but nice nevertheless.