5. Miscellaneous Services

The modules described in this chapter provide miscellaneous services that are available in all Python versions. Here's an overview:

math
-- Mathematical functions (sin() etc.).

cmath
-- Mathematical functions for complex numbers.

whrandom
-- Floating point pseudo-random number generator.

random
-- Generate pseudo-random numbers with various common distributions.

array
-- Efficient arrays of uniformly typed numeric values.

fileinput
-- Perl-like iteration over lines from multiple input streams, with ``save in place'' capability.



guido@python.org