C-extension in Python -- returning results

Keith Farmer deoradh at yahoo.com
Fri Nov 9 04:03:30 CET 2001


deoradh at yahoo.com (Keith Farmer) wrote in message news:<adec2554.0111070355.7dcdd7ac at posting.google.com>...
> 		for (j = 1; j < 11; j++)
> 			tpow[j] = tpow[j-1] * t0; /* tpow[j] = t0^j = tpow[j-1] * t0 */
> 			sumsX[j] += tpow[j]; /* sumsX[j] = Sum(t0^j) */

I misdiagnosed where the error was.  Rule Zero of C-Programming:  It's
Not Python -- Remember Braces.



More information about the Python-list mailing list