Is there no end to Python?

Terry Reedy tjreedy at
Sun Mar 19 03:58:48 CET 2006

"Kamilche" <klachemin at> wrote in message 
news:1142705943.457304.109960 at
> arcane code' crowd. Sets - when I played with them, they were slower
> than doing the equivalent code with dicts. It's got to be a reliable,
> compelling feature, before I'll add it to my arsenal.

In 2.3, sets was, I believe, a module written in Python on top of the dict 
type.  In 2.4, set() is a builtin type written in C adapting the C code of 
dicts but without the overhead of values, and with set rather than dict 
oriented methods.


More information about the Python-list mailing list