I have a simple rational number class which looks roughly like:
class Rational: def __init__(self, numerator,denominator): self.numerator= numerator self.denominator= denominator more functions...
but when I work with really large numbers such as the following example:
>>>a= Rational(2**64, 1) >>>a
python crashes telling me Rational instance has no attribute numerator.
When I execute my program which uses this class I can watch the numbers grow in size at which some point they are represented like 123...89L, shortly after python will crash.
Am I pushing the limits of python ints? I am on a 64-bit intel E8400 running 64-bit Arch linux.
Thanks in advance!!!