C extension=> pow(2, 1) gives DIFFERENT answers in different parts of C extension!?!?! Any ideas why?

Christian Seberino seberino at spawar.navy.mil
Mon Feb 2 03:18:09 EST 2004


I put this print statement in various parts of my c extension...

printf("XXX %lf\n", pow(2,1));

(I replaced XXX with name of function it was in.)

It gave 2.0 at first but when I called another C function I made
and entered it... then value dropped to 0.0!???!?

Any ideas why?

Chris



More information about the Python-list mailing list