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

Michael Foord fuzzyman at gmail.com
Sat Jul 25 02:28:54 CEST 2009


2009/7/25 Terry Jones <terry at jon.es>

> >>>>> "Nick" == Nick Coghlan <ncoghlan at gmail.com> writes:
> Nick> 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?
>
> Nick> Raise an exception, just like a signalling NaN in decimal.
>
> Agreed. The code I stuck on PyPI today raises InfiniteSetError on __len__
> and __iter__.
>
> Nick> An expanded set concept with support for complementary set
> Nick> definitions is definitely something that should cook on PyPI for a
> Nick> while though.
>
> Just to repeat the URL: http://pypi.python.org/pypi/compset/0.1
>
> It's had exactly zero downloads :-)



Those numbers only update once a day anyway.

Michael


>
>
> Terry
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
>



-- 
http://www.ironpythoninaction.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20090725/ea246157/attachment.html>


More information about the Python-ideas mailing list