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

  • From: "Homme, James" <james.homme@xxxxxxxxxxxx>
  • To: "program-l@xxxxxxxxxxxxx" <program-l@xxxxxxxxxxxxx>
  • Date: Wed, 17 Oct 2012 19:31:49 +0000

Hi Richard,
I think you are right. I really think that Learning Python is a terrible book. 
But I wanted to see if I could understand something I'm attempting to 
understand if it were said another way. I'm looking at about three books at 
once. I'm learning to step away before I get too frustrated.

Jim


From: program-l-bounce@xxxxxxxxxxxxx [mailto:program-l-bounce@xxxxxxxxxxxxx] On 
Behalf Of R Dinger
Sent: Wednesday, October 17, 2012 1:38 PM
To: program-l@xxxxxxxxxxxxx
Subject: [program-l] Re: Python: Making Code Run Faster

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<mailto:james.homme@xxxxxxxxxxxx>
To: program-l@xxxxxxxxxxxxx<mailto: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: