Giacomo Alzetta, 10.08.2012 10:20: > I'm trying to implement a c-extension which defines a new class(ModPolynomial > on the python side, ModPoly on the C-side). > At the moment I'm writing the in-place addition, but I get a *really* strange > behaviour.
You should take a look at Cython. It makes these things way easier and safer than with manually written C code. It will save you a lot of code, debugging and general hassle. Stefan -- http://mail.python.org/mailman/listinfo/python-list