[Python-Dev] Set data type

Ka-Ping Yee ping@lfw.org
Thu, 3 Feb 2000 19:57:47 -0600 (EST)


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