- if (!PyArg_ParseTuple(args, "l", &ptr)) {
- return NULL;
- }
- bset = (isl_basic_set *) ptr;
- bset = isl_basic_set_finalize(bset); // this instruction should not be required
- n = isl_basic_set_n_constraint(bset);
- if (n == -1) {
- PyErr_SetString(PyExc_RuntimeError,
- "an error occurred in isl_basic_set_n_constraint");
- return NULL;
- }
- pointers = PyList_New(n);
- if (pointers == NULL) {
+static PyObject * isl_basic_set_constraints(PyObject *self, PyObject *args) {
+ long pointer;
+ isl_basic_set *bset;
+ PyObject *list;
+ if (!PyArg_ParseTuple(args, "l", &pointer)) {