Copied some Python compat stuff to get py 2.3 running... just 
googled for it on python.org mailing list.
This commit is contained in:
2009-07-08 14:26:43 +00:00
parent eb5f6f7d93
commit 41be132eb7

View File

@@ -85,6 +85,12 @@ typedef Py_ssize_t (*lenfunc)(PyObject *);
#ifndef Py_RETURN_TRUE
#define Py_RETURN_TRUE return PyBool_FromLong(1)
#endif
#define PyInt_FromSsize_t PyInt_FromLong
#define PyNumber_AsSsize_t(ob, exc) PyInt_AsLong(ob)
#define PyIndex_Check(ob) PyInt_Check(ob)
#endif