C-extension in Python -- returning results
Keith Farmer
deoradh at yahoo.com
Thu Nov 8 22:03:30 EST 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