[Python-Dev] PyRun_* functions
Fred L. Drake, Jr.
fdrake@acm.org
Thu, 24 Apr 2003 16:09:41 -0400
wesley henwood writes:
> How does one do this - make sure that they were created with the same lib?
Exactly. This tends not to be a problem on Unix (though possible),
but isn't so rare on Windows.
> Its seems that it would be a good enhancement to remove the FILE pointer
> parameter from these functions, and just use the file name. For example,
> change PyRun_SimpleFile( FILE *fp, char *filename) to PyRun_SimpleFile(char
> *filename). Then no one would have to worry about the incompatibility.
That would be a loss of functionality -- these can currently work
with, for example, standard input. That's currently required by the
interpreter's main program.
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
PythonLabs at Zope Corporation