How to receive a FILE* from Python under MinGW?
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Fri Mar 23 15:34:22 EDT 2007
En Fri, 23 Mar 2007 10:07:30 -0300, John Pye <john.pye at gmail.com> escribió:
> On Mar 23, 7:48 pm, "Gabriel Genellina" <gagsl-... at yahoo.com.ar>
> wrote:
>>
>> And replace all places where a Python file goes into a C extension, with
>> exportable_file(f)
>
> What about calling mscvrt_get_osfhandle from inside the SWIG wrapper?
> I tried this but it seemed that the function was not exported to the
> DLL.
The idea is to separate both worlds - _get_osfhandle must be called from
the C runtime used by Python, not the one linked to your extension.
--
Gabriel Genellina
More information about the Python-list
mailing list