Py_CompileString and line numbers?
Sebastian Andersson
sa at hogia.net
Mon Sep 16 12:04:08 EDT 2002
I'm parsing a config file and from there I get embedded python code
which I send to Py_CompileString, with the config file's filename given
as filename argument to Py_CompileString. Later, when errors are found
in the python code, the wrong line numbers are reported. Is there
a way to tell Py_CompileString an offset for the first line that
I give to it?
/Sebastian
More information about the Python-list
mailing list