How to represent sets

Paul Rubin phr-n2002b at
Sun Sep 15 10:13:09 CEST 2002

"James J. Besemer" <jb at> writes:
> For dense sets isomorphic with integers, the long integer
> implementation probably will be superior.

Using immutable long integers to represent mutable sets doesn't make
much sense.  Better to use arrays like the ones implemented by the
array module.

More information about the Python-list mailing list