Python sets.

Shalabh Chaturvedi shalabh at cafepy.com
Tue May 4 21:04:48 EDT 2004


Grzegorz Dostatni wrote:
> I've got a problem.
> 
> Some time ago (I'm a bit fuzzy about the date) I read about sets in
> python. I even tried the code. I remember it was something fairly simple -
> just a base data type (like list or dictionary).  I vaguely remember it
> had a syntax similar to creating dictionaries.
> 
> Problem is I can't find it anymore.  I've searched around, but it doesn't
> seem to exist. I know of "import sets" and creating classes like that, but
> I'm sure it was a base data type. No import necessary.  There were
> operators for basic set operations like set difference, division, etc.

You might have read "What's New in Python 2.4" which, as of now, really 
explains what is *going* to be new in Python 2.4.

--
Shalabh





More information about the Python-list mailing list