File: //proc/2/cwd/usr/lib/python2.4/Demo/classes/Rat.pyo
mò
‚=5Dc @ sZ d Z d k Td „ Z d d „ Z d f d „ ƒ YZ d „ Z e d j o e ƒ n d S(
s This module implements rational numbers.
The entry point of this module is the function
rat(numerator, denominator)
If either numerator or denominator is of an integral or rational type,
the result is a rational number, else, the result is the simplest of
the types float and complex which can hold numerator/denominator.
If denominator is omitted, it defaults to 1.
Rational numbers can be used in calculations with any other numeric
type. The result of the calculation will be rational if possible.
There is also a test function with calling sequence
test()
The documentation string of the test function contains the expected
output.
( t *c C s$ x | o | | | } } q W| S( s&