Perl code 37 times quickly than Python code??

Kirill Simonov kirill_simonov at mail.ru
Tue Jan 15 18:04:21 EST 2002


On Tue, Jan 15, 2002 at 11:53:49AM -0800, Toni Gaya wrote:

> I suppose two programs generate same result, is not?. I like Python,

Yes, they both generate nothing.

> but Python program execution is 37 times long that Perl program. What
> is WRONG??

Your Perl program. You use the same variable $i in the inner and the
outer loops.


\Xi





More information about the Python-list mailing list