[Python-Dev] [Python 2.4] PyInt_FromLong returning NULL (original) (raw)
Andreas Jung lists at andreas-jung.com
Tue Dec 7 19:34:32 CET 2004
- Previous message: [Python-Dev] [Python 2.4] PyInt_FromLong returning NULL
- Next message: [Python-Dev] [Python 2.4] PyInt_FromLong returning NULL
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Sorry, false alarm :-( There assignment of the NULL occurs in the if-clause of the corresponding code (I have overseen the ASSIGN call):
if (! PyInt_Check(p))
{
if (PyDict_Check(p))
{
if (PyString_Check(name) ||
PyUnicode_Check(name)) { ASSIGN(p, PyObject_GetItem(p, name)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
if (p == NULL) {
puts("PyObject returned NULL");
PyErr_Clear();
}
}
else
p = PyInt_FromLong((long)1);
...doing some further investigations on that.
-aj
- Previous message: [Python-Dev] [Python 2.4] PyInt_FromLong returning NULL
- Next message: [Python-Dev] [Python 2.4] PyInt_FromLong returning NULL
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]