[Python-ideas] More on set literals

Adam Atlas adam at atlas.st
Sat Jan 26 18:28:18 CET 2008

On 26 Jan 2008, at 12:18, VanL wrote:
> I like Raymond's suggestion (apparently adopted) that {1,2,3} is a
> frozenset literal. However, I also like the {{1,2,3}} syntax. So I  
> would
> propose that {{}} become the literal for the *mutable* set, not the
> frozenset.

How would this be distinguished from a singleton frozenset containing  
another frozenset?

More information about the Python-ideas mailing list