[Python-ideas] universal set object for use in set manipulation
Nick Coghlan
ncoghlan at gmail.com
Sat Jul 25 01:55:56 CEST 2009
Greg Ewing 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?
Raise an exception, just like a signalling NaN in decimal. An expanded
set concept with support for complementary set definitions is definitely
something that should cook on PyPI for a while though.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
More information about the Python-ideas
mailing list