Finding size of Variable

Jussi Piitulainen jpiitula at
Wed Feb 12 09:57:50 CET 2014

Chris Angelico writes:
> On Wed, Feb 12, 2014 at 6:49 PM,  <wxjmfauth at> wrote:
> > The day you find an operator working on the set of
> > reals (R) and it is somehow "optimized" for N
> > (the subset of natural numbers), let me know.


> In Python, integers have arbitrary precision, but floats, Fractions,
> and Decimals, don't. Nearly any operation on arbitrarily large
> numbers will be either more accurate or more efficient (maybe both)
> with integers than with any of the other types.

Is that true about Fractions?

More information about the Python-list mailing list