|
From: <ham...@t-...> - 2003-12-14 07:58:52
|
Hi there,
and finally getting back to ming patches:
ming.i - which one is better
%typemap(python,in) FILE * {
if (!PyFile_Check($input)) {
PyErr_SetString(PyExc_TypeError, "Need a file!");
return NULL;
}
$1 = PyFile_AsFile($input);
}
---------
%typemap(python,in) FILE * {
if (!PyFile_Check($source)) {
PyErr_SetString(PyExc_TypeError, "Need a file!");
return NULL;
}
$target = PyFile_AsFile($source);
}
Cheers
Wolfgang
|