Set literals

George Sakkis gsakkis at
Mon Mar 21 23:51:09 CET 2005

How about overloading curly braces for set literals, as in

>>> aSet = {1,2,3}

- It is the standard mathematic set notation.
- There is no ambiguity or backwards compatibility problem.
- Sets and dicts are in many respects similar data structures, so why not share the same delimiter ?


More information about the Python-list mailing list