Has anybody seen such a thing? Small self-sufficient modules are preferred.
One more thing to try is Rat.py from demo folder in Python 2.5 maintenance branch. If i understand correctly, it is the daddy of 2.6 fractions. It's a single module without dependencies.
>>> from Rat import rat
>>> rat(1) / rat(3)
Rat(1,3)
>>> rat(1, 3) ** 2
Rat(1,9)
UPDATE: Nah, fractions.py is about 2.5 times faster for my task.