[Python-3000] Set literal

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Jan 29 23:29:24 CET 2008


Jim Jewett wrote:

> The majority of uses need a mutable set that starts empty.

Does anyone have evidence to support that assertion?

Thinking about my own code, I probably do membership
tests on constant sets (represented as tuples) about as
often as I build up mutable sets (or some equivalent data
structure).

--
Greg


More information about the Python-3000 mailing list