SWIG extension crashes

Brian Quinlan brian at sweetapp.com
Thu Mar 6 13:22:38 EST 2003


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

You aren't incrementing the reference count of Py_None.

Cheers,
Brian






More information about the Python-list mailing list