[Python-3000] sets in P3K?
Alex Martelli
aleaxit at gmail.com
Mon Apr 24 20:03:48 CEST 2006
On 4/24/06, Guido van Rossum <guido at python.org> wrote:
> On 4/24/06, Alex Martelli <aleaxit at gmail.com> wrote:
> > On 4/24/06, Greg Wilson <gvwilson at cs.utoronto.ca> wrote:
> > > Interesting --- I think that being able to write down a data structure
> > > using the same sort of notation you'd use on a whiteboard in a high school
...
> > IOW, it doesn't seem to me that the "high school whiteboard" test can
> > be even very roughly approximated, so focusing on it for
...
> Nobody said anything about high-school whiteboards.
Greg just did, and I had quoted that phrase -- see above.
> sense that {F(x) for x in S if P(x)}, ough to be valid syntax if we
> support {1, 2, 3} -- IOW the form {<genexp>} should mean the same as
> set(<genexp>).
I dislike that as much as I dislike [<genexp>] as a shorthand for
list(<genexp>), but I have no trouble admitting that if we have the
[...] form, it's consistent to have the {...} one too.
Alex
More information about the Python-3000
mailing list