Finding size of Variable

Jussi Piitulainen jpiitula at ling.helsinki.fi
Wed Feb 12 03:57:50 EST 2014


Chris Angelico writes:
> On Wed, Feb 12, 2014 at 6:49 PM,  <wxjmfauth at gmail.com> 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