Args not set in extension class

Gorny gorny0 at zonnet.nl
Sun Jun 16 05:56:12 EDT 2002


"Kragen Sitaker" <kragen at pobox.com> schreef in bericht
news:83sn3otlkf.fsf at panacea.canonical.org...
> "Gorny" <gorny0 at zonnet.nl> writes:
> > I've already dealt with the problem... Just create a function like:
> >
> > static PyObject *
> > wrap_pkt_object(PyObject *self, PyObject *args)
> > {
> >         PyObject * return_object;
> >         return_object = new_pkt_object(args);
> >         return return_object;
> > }
> >
> > But it would be very nice if someone can explain to me, why this
> > is happening and it isn't possible to *directly* call new_pkt_object
even
> > if you prototype the latter function with two arguments like
> > wrap_pkt_object!
>
> If you prototype new_pkt_object with two args, make sure you're using
> the second one.

That doesn't seem to work as well for some vague reason... It complains
it's not a valid tuple

Gorny

--
"Spread the sources"
http://gorny.cjb.net





More information about the Python-list mailing list