Python/C API - PyArg_ParseTuple problem ?
Michael Hudson
mwh at python.net
Tue Aug 26 08:53:22 EDT 2003
"Jérôme Laheurte" <fraca7 at free.fr> writes:
> I still haven't been able to reproduce it with a minimal source code, but
> if you want to try it the source should be available at
>
> http://fraca7.homeunix.net/pyfltk2-0.0.0.tar.gz
>
> at least if I didn't screw up with the whole NAT thingies.
That URL 404s for me (as did a few others I guessed).
> As you can see, the string buffer is passed to
> WidgetWrapper::WidgetWrapper, which copies it by using
> fltk::Widget::copy_label. I've checked the fltk code to ensure the buffer
> was copied via strdup().
>
> What really puzzles me is that difference between the "ii|s" and
> "ii|O"/PyString_AsString stuff. Wouldn't one expect to have the same
> result, right or wrong, from both techniques ?
Um, probably :-)
Cheers,
mwh
--
how am I expected to quit smoking if I have to deal with NT
every day -- Ben Raia
More information about the Python-list
mailing list