Bruce.です。
Numeric Tower ですが、ちょっとだけ言及しているものを見つけました。
Python 3 primer, Part 2: Advanced topics
http://www.ibm.com/developerworks/linux/library/l-python3-2/index.html?ca=drs-
の
The ABC type hierarchy のあたりです。
Python 3 now supports a type hierarchy of ABCs that represent numeric classes.
These ABCs live in the numbers module and include Number, Complex, Real, Rational,
and Integral. Figure 1 shows the number hierarchy. You can, of course, use these
to implement your own numeric type or other numeric ABC.
Figure 1. The numeric hierarchy
Number
↑
Complex
↑
Real
↑
Rational
↑
Integral
A new module, fractions, implements the numeric ABC Rational. This module
gives support for rational number arithmetic. If you use dir(fractions.Fraction),
you'll notice it has attributes such as imag, real, and __complex__. Following
the numeric tower, this is because Rationals inherit from Reals, which inherit
from Complex.
The numerical tower
Python's numeric hierarchy was inspired by the Scheme language's numerical tower.
このページだと numeric hierachy になってますね。
--
木村浩一
I thought what I'd do was, I'd pretend I was one of those deaf-mutes or should I?
mail kbk at kt.rim.or.jp
web www.kt.rim.or.jp/~kbk/zakkicho/
homepage3.nifty.com/farstar/