[Python-Dev] PyEval_EvalCode()

Guido van Rossum guido@python.org
2002年10月17日 11:18:22 -0400


> This prototype is not available when including "Python.h" (Using v2.1.3)
> Why did you exclude it from the "official" API prototypes?

Because it's unlikely that someone writing a Python extension would
ever have a need for it.
> I found it in "eval.h", which has to be included manually, besides 
> "Python.h".
>> Isn't that PyEval_EvalCode() the regular API function to run
> CodeObjects from Py_CompileString() ?

Probably -- I've never used it this way. But why aren't you using
PyRun_String()?
--Guido van Rossum (home page: http://www.python.org/~guido/)

AltStyle によって変換されたページ (->オリジナル) /