[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Adonthell-devel] event stuff committed
From: |
Sasha Kushnirenko |
Subject: |
Re: [Adonthell-devel] event stuff committed |
Date: |
Fri, 30 Apr 2004 11:57:01 +0400 |
User-agent: |
Mutt/1.3.28i |
Hi, Kai!
> > --- 2 ---
> > Compilations error:
>
> > python.cc: In function `struct PyObject *
> > python::get_tuple(base::flat &,
> > short unsigned int = 0)':
> > ../../src/python/python.h:184: too few arguments to function `struct
> > PyObject * python::pass_instance<const char *>(const char *,
> > python::ownership)'
> > python.cc:96: at this point in file
> >
> > ---> PyTuple_SetItem (tuple, i, pass_instance ((const char*)
> > value));
> > I commented those lines out to get further :) I'm running python 2.2
>
> Weird that it worked for me. pass_instance indeed requires 2 parameters.
> Replace it with
> PyTuple_SetItem (tuple, i, pass_instance ((const char*) value), 0);
>
Now it is really odd :) one complaint too few another too many!
python.cc: In function `struct PyObject * python::get_tuple(base::flat &,
short unsigned int = 0)':
../../src/python/python.h:184: too few arguments to function `struct
PyObject * python::pass_instance<const char *>(const char *,
python::ownership)'
python.cc:97: at this point in file
/usr/include/python2.2/tupleobject.h:35: too many arguments to function `int
PyTuple_SetItem(PyObject *, int, PyObject *)'
python.cc:97: at this point in file
Sasha.