PEP 218 Re: ANN: set-0.1 module available

Denis S. Otkidach ods at fep.ru
Fri May 17 07:41:57 EDT 2002


On Fri, 17 May 2002, James J. Besemer wrote:

JJB> > That's to complex.  Maybe sets should be always immutable
JJB> like
JJB> > tuples?
JJB>
JJB> Python has clear precedent for doing so, in that strings,
JJB> tuples
JJB> and long integers all are immutable.

Following these traditions we should have 2 types for sets: one
immutable but hashable (like tuple) and one mutable (like list).






More information about the Python-list mailing list