Q: Feature Wish: "%" Extension
Gareth McCaughan
Gareth.McCaughan at pobox.com
Wed Nov 7 19:39:34 EST 2001
Tim Peters wrote:
> No threads on c.l.py end up being about Hitler. Not even this one! Indeed,
> I expect this one to veer into transfinite cardinals before I finish this
> sentence.
>
> python-needs-a-transfinite-cardinal-type-ly y'rs - tim
Mmm, that would be nice.
>>> import cardinals
>>> a = cardinals.aleph(1)
>>> print a
<cardinal "aleph-1">
>>> b = 2 ** cardinals.aleph(0)
>>> print b
<cardinal "continuum">
>>> a == b
Undecidable
Just as well Python doesn't have a conventional boolean type.
--
Gareth McCaughan Gareth.McCaughan at pobox.com
.sig under construc
More information about the Python-list
mailing list