Lonnie Princehouse <[EMAIL PROTECTED]> wrote:

> There is a sets.Set class built in to Python.  You might want to use

In 2.4, there's also a set builtin type -- you can keep using the sets
module from the standard library, but the built-in set is faster.

If you need compatibility with both 2.3 and 2.4, getting the best set
implementation available in each case, the common idiom is:

try:
    set
except NameError:
    from sets import Set as set

The interface to use the set type/class is the same in either case.


Alex
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to