List comprehension vs filter()

Chris Angelico rosuav at
Wed Apr 20 14:03:33 EDT 2011

On Thu, Apr 21, 2011 at 12:44 AM, Ian Kelly <ian.g.kelly at> wrote:
> So, the question for the OP:  Is this file being run with execfile?

Not execfile per se; the code is fetched from the database and then
executed with:

PyObject *v=PyRun_StringFlags(code,Py_file_input,py_globals,locals,0);

Is Py_file_input the problem?

Chris Angelico

More information about the Python-list mailing list