[Python-ideas] universal set object for use in set manipulation

Terry Jones terry at jon.es
Thu Jul 23 13:16:24 CEST 2009


See also this thread:

  http://mail.python.org/pipermail/python-dev/2006-May/064977.html

I implemented some of what I was proposing there (in Python though, not C),
and am happy to send people the code if there's any interest.

These things can't be 100% clean (e.g., what happens when you call len on
an infinite set), but you can still get a lot of useful functionality if
what's provided matches your use case. Having efficient support for very
large sets via complements, having a Universal set, etc., would all be nice.

Anyway, see the above thread for more discussion / opinions.

Terry



More information about the Python-ideas mailing list