[Python-ideas] Boolean ABC similar to what's provided in the 'numbers' module

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Feb 20 18:43:31 EST 2018


> On Mon, Feb 19, 2018 at 5:58 AM, Sylvain MARIE 
> <sylvain.marie at schneider-electric.com 
> <mailto:sylvain.marie at schneider-electric.com>> wrote:
> 
>     By the way, is there a reason for the name "Integral" (algebraic
>     theory) instead of "Integer" (computer science) ? Would it be
>     practically feasible to add "Integer" as an alias to "Integral" in
>     the numbers package ?

Possibly inspired by Haskell, which has Integral (a type class, sort of
like an abstract type) and also Integer and Int (which are concrete types).

-- 
Greg


More information about the Python-ideas mailing list