Translate this to python?

Patrick Maupin pmaupin at gmail.com
Tue Jan 3 21:20:27 EST 2006


> for (i = nPoints-1, j = 0; j < nPoints; i = j, j++)

A simple translation of this would be:

i = npoints-1

for j in range(npoints):
    ... (your code here)
    i = j

HTH,
Pat




More information about the Python-list mailing list