Is there no end to Python?

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


"Kamilche" <klachemin at comcast.net> wrote in message 
news:1142705943.457304.109960 at e56g2000cwe.googlegroups.com...
> 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.

tjr






More information about the Python-list mailing list