[Python-ideas] Boolean ABC similar to what's provided in the 'numbers' module
Guido van Rossum
guido at python.org
Tue Feb 20 12:06:27 EST 2018
Looking at https://en.wikipedia.org/wiki/Number it seems that Integer is
"special" -- every other number type is listed as "<adjective> numbers"
(e.g. rational numbers, complex numbers) but integers are listed as
"Integers". So let's just switch it to that, and keep Integral as an alias
for backwards compatibility. I don't think it's a huge problem to fix this
in 3.7b2, if someone wants to do the work.
On Mon, Feb 19, 2018 at 9:53 PM, Stephen J. Turnbull <
turnbull.stephen.fw at u.tsukuba.ac.jp> wrote:
> Guido van Rossum writes:
>
> > Hm, perhaps Integral is an adjective, just like Boolean?
>
> I would guess so. This is the same idiom we use when we call
> [1, 2, 3] a "truth-y".
>
>
--
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180220/f0a1d5fe/attachment.html>
More information about the Python-ideas
mailing list