Staging: this is not the live site, pydocs.org.
Numeric and Mathematical Modules
numbers
Abstract Base Classes (ABCs) for numbers, according to PEP 3141.
TODO: Fill out more detailed documentation on the operators.
© Python Software Foundation. PSF License Version 2 · Official docs ↗
Symbols in numbers
c
- Complex
- Complex defines the operations that work on the builtin complex type.
i
- Integral
- Integral adds methods that work on integral numbers.
n
- Number
- All numbers inherit from this class.
r
- Rational
- To Real, Rational adds numerator and denominator properties.
- Real
- To Complex, Real adds the operations that work on real numbers.