[program-l] Re: Python: Making Code Run Faster

  • From: "R Dinger" <rrdinger@xxxxxxxxxx>
  • To: <program-l@xxxxxxxxxxxxx>
  • Date: Wed, 17 Oct 2012 10:38:26 -0700

Hi Jim,

That is a great book you are using to learn Python, but it can get a little 
heavy at times.

My experience is that while loops run quite a bit slower in Python.

Richard
----- Original Message ----- 
From: Homme, James 
To: program-l@xxxxxxxxxxxxx 
Sent: Wednesday, October 17, 2012 9:57 AM
Subject: [program-l] Python: Making Code Run Faster


Hi,

We were talking about this subject a little while back. In case it matters to 
you, Learning Python, Third Edition says that for loops are faster than while 
loops because for loops use c to speed them up. It says that while loops use 
pure Python. This is my non-technical paraphrase of what I was just reading. 
The same little section also says that for loops are easier to code and easier 
to read. 



Thanks.



Jim



Thanks.



Jim







--------------------------------------------------------------------------------

This e-mail and any attachments to it are confidential and are intended solely 
for use of the individual or entity to whom they are addressed. If you have 
received this e-mail in error, please notify the sender immediately and then 
delete it. If you are not the intended recipient, you must not keep, use, 
disclose, copy or distribute this e-mail without the author's prior permission. 
The views expressed in this e-mail message do not necessarily represent the 
views of Highmark Inc., its subsidiaries, or affiliates.

Other related posts: