What's this: run_pyc_file: nested_scopes: 0?

Werner Schiendl ws-news at gmx.at
Fri Nov 23 09:30:37 EST 2001


Hi,

this message is printed when you specify the flags parameter to a call to

PyRun_SimpleFileExFlags
PyRun_AnyFileExFlags

this functions are used, an a flags parameter is passed, in Py_Main, the
function that actually provides the entry for the python executable.

How do you run your code?

If the messages bothers you, you should be safe removing the line

  fprintf(stderr, "run_pyc_file: nested_scopes: %d\n",
   flags->cf_nested_scopes);

in line 1079 of the file Python/pythonrun.c.

hth
Werner

"Dale Strickland-Clark" <dale at riverhall.NOTHANKS.co.uk> wrote in message
news:99ksvtsp9uipajsfkqehgbi9hc0f8el4mq at 4ax.com...
> This message has started to appear at the end of each use of a system
> we're developing:
>
> run_pyc_file: nested_scopes: 0
>
> It's not one of our messages and my hunch is that it coincides  with
> us using compileall to ensure the main module is compiled.
>
> Any ideas what it is and how I can get rid of it?
>
> Python 2.1
>
> Cheers.
> --
> Dale Strickland-Clark
> Riverhall Systems Ltd





More information about the Python-list mailing list