Args not set in extension class

Kragen Sitaker kragen at
Sat Jun 15 14:59:28 EDT 2002

"Gorny" <gorny0 at> 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.

More information about the Python-list mailing list