[Python-3000] Set literal
brett at python.org
Fri Jan 25 04:15:44 CET 2008
On Jan 24, 2008 5:38 PM, Jeffrey Yasskin <jyasskin at gmail.com> wrote:
> On Jan 24, 2008 4:13 PM, <skip at pobox.com> wrote:
> > Guido> Looking over the code base, frozensets are used rarely. So I
> > Guido> don't think this is warranted.
> > I kind of like the idea. Raymond's arguments make sense to me. Most of the
> > time if I bother to create a set literal it would be to use it as a
> > constant.
> Agreed. I suspect that "frozenset" is just too long to type often,
> even if people are usually creating sets they don't intend to modify.
I never thought of that, but that is a good point. There is also a
greater chance people will look for 'set' at the interpreter, find it,
and just not come across frozenset. Luckily the docs mention both
side-by-side, so reading the docs makes this explanation a little less
More information about the Python-3000