PyObject *ilugi_FromIdentityInfo(ilu_IdentityInfo id){ IlugiObject * v =PyObject_NEW(IlugiObject, &Ilugi_Type);if(v ==0)return0;if(id->ii_type != ilu_GSSIdentity)return0; v->id = id; v->name = ILU_NIL; v->localp = ilu_FALSE;return(PyObject *) v; } 开发者ID:spchamp...
The next step is to add a new METH_STACK flag to pass parameters to C functions using a similar API (PyObject **stack, int na, int nk) and modify the argument clinic to use this new API. Thanks to Larry Hasting who gave me the idea in a previous edition of Pycon US ;-) This...