SWIG extension crashes

Bernhard Herzog bh at intevation.de
Thu Mar 6 13:24:16 EST 2003


andrew.gregory at npl.co.uk (Andrew Gregory) writes:

> PyObject* MyClass::Mysend()
>  {
>     return Py_None;
>  };

You have to Py_INCREF Py_None before returning it.

   Bernhard

-- 
Intevation GmbH                                 http://intevation.de/
Sketch                                 http://sketch.sourceforge.net/
MapIt!                                           http://www.mapit.de/




More information about the Python-list mailing list