Thanks for your answer, I've tried the way Fredrik suggested which
pointed out to a solution.
cheers
--
http://mail.python.org/mailman/listinfo/python-list
I've tried that and it worked. I've used Python to generate wrapper and
it seems ok- I'm yet testing it, so far so good.
thanks,
Elie
--
http://mail.python.org/mailman/listinfo/python-list
"Eli" <[EMAIL PROTECTED]> wrote:
> Thanks for the answer; I should better explain my problem.
that's always a good idea ;-)
> So a solution would be creating 'function 1' which preprocess the input
> and calls the original function 1, than do so for any other function.
> This works, but there ar
> The problem for me is that the pointer "p" in the last function points
> to the arguments:
> If a user caller foo("123") - p points to '123'.
> What I need is to point it to the whole string received - 'foo
> ("123")'.
>
> Is there a way I can do this?
no. at least not a simple one. you can obta
Thanks for the answer; I should better explain my problem.
My organization already has a DOS command line tool which I would like
to transffer to Python.
Every function this DOS command line too can execute has a definition
entry in an array:
{"function name", function address, other info... },
W
"Eli" wrote:
> I've followed the Python docs about extending the Python interperter
> and created an extension library.
> I've added my functions like this:
>
> static PyMethodDef pmylib_methods[] = {
> {"foo", pmylib_foo, METH_VARARGS, "foo() doc string"},
> ...
> }
> static PyObject *pmylib_foo(
Hi,
I've followed the Python docs about extending the Python interperter
and created an extension library.
I've added my functions like this:
static PyMethodDef pmylib_methods[] = {
{"foo", pmylib_foo, METH_VARARGS, "foo() doc string"},
...
}
static PyObject *pmylib_foo(PyObject *self, PyObject *a