[c-api]Transmutation of an extension object into a read-only buffer adding an integer in-place.

Stefan Behnel stefan_ml at behnel.de
Fri Aug 10 14:50:08 EDT 2012


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





More information about the Python-list mailing list