How to receive a FILE* from Python under MinGW?
John Pye
john.pye at gmail.com
Fri Mar 23 00:47:22 EDT 2007
On Mar 23, 3:33 pm, "Gabriel Genellina" <gagsl-... at yahoo.com.ar>
wrote:
> import msvcrt
> fh = msvcrt.get_osfhandle(f.fileno())
..
> example.filetest(fh)
> f.close()
Cool, that looks great, Gabriel.
But is there any way I can hide the get_osfhandle call inside my
Python module? That way I wouldn't need to request end users to make
contorted 'if platform.system()=="Windows"' calls everywhere.
Maybe this *is* workable, after all :-)
More information about the Python-list
mailing list