George Sakkis wrote: > 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 ?
This was the proposed syntax (with {-} being the empty set - there's the ambiguity). The issue may be revisited for Python 3K, but for now there will not be syntax support for sets. Read the section on 'Set Notation' in: http://www.python.org/peps/pep-0218.html Tim Delaney -- http://mail.python.org/mailman/listinfo/python-list