Is Python really slow?

Alexander alecdem at mit.edu
Sat May 27 04:08:38 EDT 2000


Hi

I have implemented  loop in Python

for k in xrange(1,100000000):
   pass

and the same one in  C
for ( i = 0 ; i < 1e8; i++ ) ;

and the second one seems to be working hundreds of times faster than the
first one

Can I do anything with that.

Thank you





More information about the Python-list mailing list