[Python-3000] sets in P3K?

Barry Warsaw barry at python.org
Fri Apr 28 03:42:23 CEST 2006


On Thu, 2006-04-27 at 16:05 -0700, Eli Stevens (WG.c) wrote:

> I think you'd have to create a tuple, and convert it to a set on the 
> fly.  Which should x be in the following:
> 
> x = (1, 2, 1)
> dictOfCallables["foo"](x)

Well here's another nutty idea.  We actually have two ways to create
literal tuples, right?

x = 1, 2, 3
x = (1, 2, 3)

So let's keep the first and hijack the second to be set constructor
notation.  As for your other questions, I dunno, it was a dumb idea. :)

-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/20060427/60972e59/attachment.pgp 


More information about the Python-3000 mailing list