On Tue, Jan 03, 2006 at 05:42:44PM -0800, KraftDiner wrote:
> I'm porting a routing from C++ to python.
> There is a complex for loop that I don't know how to code in python
> 
> for (i = nPoints-1, j = 0; j < nPoints; i = j, j++)
> 

i = nPoints - 1
for j in range(nPoints):
        <statements>
        i = j
-- 
Zeng Nan           
Simple is Beautiful.
~~~~~~~~~~~~~~~~~~~~
MY BLOG: http://zengnan.blogspot.com

Attachment: pgpGFuV3FkTgH.pgp
Description: PGP signature

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to