Python very slow on the Sharp Zaurus - any idea why?

Anders J. Munch andersjm at inbound.dk
Mon Jul 22 14:12:39 EDT 2002


"Alexandre Courbot" <alexandrecourbot at linuxgames.com> wrote:
> Note that the Arm doesn't have any floating point unit, and that the
> floating point operations are all emulated. But I never use any floating
> point arithmetic in my game or in my Python scripts. Note also that I
> had to cross-compile the Python library myself from Python 2.2 sources,
> as there is no lightweight Python distribution for the Arm. But I don't
> get what's wrong. Does Python use floating point arithmetic internally?
> Is there something else I missed?

Python uses floating point to check for integer arithmetic overflow.

- Anders






More information about the Python-list mailing list