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 >
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4