"Borse, Ganesh" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
| Py_CompileString takes the source code from file, isn't it?

No.

| As can be seen from the syntax of this function: "PyObject* 
Py_CompileString(char *str, char *filename, int start)"

I am rather sure that the filename param is the same as for the 
Python-level builtin function compile:
      compile( string, filename, kind[, flags[, dont_inherit]])

Compile the string into a code object. Code objects can be executed by an 
exec statement or evaluated by a call to eval(). The filename argument 
should give the file from which the code was read; pass some recognizable 
value if it wasn't read from a file ('<string>' is commonly used).

The filename is used for exception traceback messages. 



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to