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

2007-03-15 Thread Tommy Nordgren
On 14 mar 2007, at 11.57, John Pye wrote: > Hi all > > I understand that I can't hope to pass a FILE* from the Windows > version of Python into a SWIG module that I've built using MinGW > gcc/g+ > +, because apparently the FILE* structure are different and > incompatible. > > Is there an offici

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

2007-03-15 Thread Ross Ridge
John Pye <[EMAIL PROTECTED]> 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 dispatc

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

2007-03-14 Thread John Pye
Hi all I understand that I can't hope to pass a FILE* from the Windows version of Python into a SWIG module that I've built using MinGW gcc/g+ +, because apparently the FILE* structure are different and incompatible. Is there an official workaround for this? Presumably I need to implement a mingw