[Python-3000] Set literal

Guido van Rossum guido at python.org
Sun Jan 27 06:20:23 CET 2008

On Jan 26, 2008 8:39 PM, Raymond Hettinger <python at rcn.com> wrote:
> [Adam]
> > Given that "x in {1,2,3}" can be optimized just as well with mutable
> > sets (can somebody think of an example that can't?), do you still
> > support immutable using the literal notation?
> From an optimization point of view, it is still best to have {...} as a frozenset.
> However, my support for it has waned anyway.  The notation is also
> used for set comprehension and those should be mutable.

Cool. That saves us a PEP. Vive le status quo.

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-3000 mailing list