Seg fault in Python/C API: PyString_FromString(NULL)
Yves-Eric Martin
yemartin at garage.co.jp
Wed Apr 12 22:44:31 EDT 2000
On Wed, 12 Apr 2000 10:15:36 GMT
"Mark Hammond" <mhammond at skippinet.com.au> wrote:
> > First, I am new to the Python/C API, so correct me if I am wrong:
> > shouldn't PyString_FromString(NULL) return Py_None? Or am I out to
> > lunch?
>
> Nope - you must check for NULL before making the call.
Ok, that makes sense now. Thanks.
--
Yves-Eric Martin
Digital Garage Inc.
yemartin at garage.co.jp
More information about the Python-list
mailing list