[Python-Dev] Set data type

gvwilson@nevex.com gvwilson@nevex.com
Thu, 3 Feb 2000 22:20:49 -0500 (EST)


FWIW, I favor {3, 5, 7} because it's similar to the notation for
dictionaries.

Greg

On Thu, 3 Feb 2000, Ka-Ping Yee wrote:

> On Thu, 3 Feb 2000, Greg Stein wrote:
> > 
> > I think the follow is just as readable, if not more so:
> > 
> >     >>> s = set(1, 5, 7)
> > 
> > Where set() is a new builtin, taking an arbitrary number of arguments and
> > returning a new Set type.
> 
> Sure.  We would certainly need a set() built-in anyway.
> I just thought the {1, 5, 7} syntax would be quite nice
> for math-and-science people, as it matches textbooks well.
> 
> 
> -- ?!ng
> 
> 
> _______________________________________________
> Python-Dev maillist  -  Python-Dev@python.org
> http://www.python.org/mailman/listinfo/python-dev
>