[Python-3000] set literals

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Jul 11 02:20:20 CEST 2006


Diogo Kollross wrote:

> While we're at it... what happens to frozenset?

Probably it becomes an immutable subsclass of dict.

Then, since the word 'set' is now free, we can rename
the somewhat awkward-sounding 'frozenset' to 'set'.

There would then be a nice symmetry between list/tuple
and dict/set:

             +-----------------------+
             | Immutable    Mutable  |
+-----------+-----------------------+
| Sequence  |   tuple       list    |
| Mapping   |   set         dict    |
+-----------+-----------------------+

--
Greg



More information about the Python-3000 mailing list