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

George Sakkis george.sakkis at gmail.com
Fri Jul 24 00:29:14 CEST 2009


On Thu, Jul 23, 2009 at 6:13 PM, Greg Ewing<greg.ewing at canterbury.ac.nz> wrote:
> Andy Kish wrote:
>
>> It's really annoying to having appropriate identity element for
>> union built in while missing the *correct* identity element for
>> intersection.
>
> What would
>
>   for x in set.universal():
>     ...
>
> do?

Overall it seems like a non-solution to a non-problem. Why don't we
add a dict.universal(), list.universal(), etc. while we're at it.
Easily a -1.

George



More information about the Python-ideas mailing list