On Jan 26, 2008 8:39 PM, Raymond Hettinger <[EMAIL PROTECTED]> 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/)
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to