[Python-3000] Set literal
Guido van Rossum
guido at python.org
Tue Jan 29 00:58:52 CET 2008
On Jan 28, 2008 3:45 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Guido van Rossum wrote:
> > On Jan 28, 2008 2:46 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> >>Is there a PEP we can refer to for confirmation of
> >>said non-craziness?
> > Have a look at PEP 218.
> That PEP proposes that there be no set literal or comprehension
> syntax, and doesn't contain any discussion on whether such
> syntax should produce sets or frozensets if it were to exist.
> Maybe there was discussion about that at the time, but it would
> be good to have it summarised in a PEP somewhere.
No, but it *does* make 'set' the "default" type, making you work
harder to get a frozenset. From this it follows that frozenset was
considered the lesser-useful type at the time. And I still feel that
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000