This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tds333
Recipients
Date 2004-12-15.15:16:22
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=600792

The FILE pointer is specific to your c-lib.
Different versions of the ms c-lib have incompatible
implementations of this structure.

To work arround such problems use python to get the right FILE*

Example (not tested):

/* use pythons std c library to produce a FILE object
   to avoid mess with different c libs in debug or release mode
   and different versions used to compile python
*/
      PyObject* pyFile = PyFile_FromString(fileName, "r");

      FILE* const file = PyFile_AsFile(pyFile);
      assert(0 != file);
      const int succ = PyRun_SimpleFile(file, fileName);
      // now remove py file object
      Py_XDECREF(pyFile);
History
Date User Action Args
2007-08-23 14:28:23adminlinkissue1083793 messages
2007-08-23 14:28:23admincreate