Translate this to python?

Zeng Nan jqdkf at cz3.nus.edu.sg
Tue Jan 3 22:44:16 EST 2006


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20060104/ce50ffb0/attachment.sig>


More information about the Python-list mailing list