Passing a FILE* from Python into a MinGW/SWIG module

Ross Ridge rridge at caffeine.csclub.uwaterloo.ca
Thu Mar 15 17:46:38 CET 2007


John Pye <john.pye at gmail.com> wrote:
>Is there an official workaround for this? Presumably I need to
>implement a mingw-compatible version of all the 'file' class in
>Python, eg

I'm not familiar with SWIG, but why not pass Python's own file class?
Method calls on Python's file class will be dispatched to C code in
the Python interpreter and so will use the C runtime that Python was
linked with.

					Ross Ridge

-- 
 l/  //	  Ross Ridge -- The Great HTMU
[oo][oo]  rridge at csclub.uwaterloo.ca
-()-/()/  http://www.csclub.uwaterloo.ca/~rridge/ 
 db  //	  



More information about the Python-list mailing list