[Python-3000] sets in P3K?

Barry Warsaw barry at python.org
Tue May 2 21:56:56 CEST 2006


On Tue, 2006-05-02 at 12:05 -0700, Raymond Hettinger wrote:

> I think Guido had the best solution.  Use set() for empty sets, use {} 
> for empty dicts, use {genexp} for set comprehensions/displays, use 
> {1,2,3} for explicit set literals, and use {k1:v1, k2:v2} for dict 
> literals.  We can always add {/} later if demand exceeds distaste.

+1

> Also, FWIW, I think the current dict constructor is fine as-is.  No 
> doubt that its API is fully-loaded, but it is very useful and not hard 
> to learn.  Practicality wins here.

+1

-Barry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 309 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/python-3000/attachments/20060502/803ac398/attachment.pgp 


More information about the Python-3000 mailing list