int() 24 times slower then long() in Python 2.3
paolo veronelli
paolo_veronelli at yahoo.it
Tue Jul 13 10:46:58 EDT 2004
On Tue, 13 Jul 2004 11:24:47 -0300, Batista, Facundo
<FBatista at uniFON.com.ar> wrote:
> [willem179 at yahoo.com]
>
> #- When I run the follwing code using Python 2.3:
> #-
> #- ...
> #-
> #- it prints out: 23.9673206147
> #-
>
> In Py2.4a1: 10.2069593628
>
>
> #- I suppose that Python is getting over-engineered by too professional
> #- programmers. The first signs of decay?
>
> Saying that, without having knowledge of all the int-to-long process in
> the
> way and it's implications, it's at least a bit rushy.
It sounds like a joke :int to long is a zero-padding operation or
similar,isn't it?
Long to int should be considered MORE difficult (truncating....) .(This is
my joke)
--
....lotta dura per la verdura
More information about the Python-list
mailing list