|
From: Albert L. <al...@pl...> - 2003-12-14 18:18:46
|
IMHO, I'd say the latter. I don't like the looks of "$1", but I'm not
too familiar with python.
On Sunday, December 14, 2003, at 02:58 AM, Wolfgang Hamann wrote:
>
> 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
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for
> IBM's
> Free Linux Tutorials. Learn everything from the bash shell to sys
> admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> Ming-devr mailing list
> Min...@li...
> https://lists.sourceforge.net/lists/listinfo/ming-devr
>
|