PyEval_EvalFrame

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bretthall@gmail.com

    #1

    PyEval_EvalFrame

    I see a C/python program that we're using spending a lot of time in
    this function, far more than we think it should. What is it?

    Thanks in advance! There seems to be nothing (but a bunch of stack
    traces) when I google this.
    Brett

  • Tim Peters

    #2
    Re: PyEval_EvalFram e

    [bretthall@gmail .com][color=blue]
    > I see a C/python program that we're using spending a lot of time in
    > this function, far more than we think it should. What is it?[/color]

    PyEval_EvalFram e is the heart of the CPython interpreter: it's a very
    large function that _implements_ the interpreter, marching through the
    byte codes and executing them. You can't run Python code at all
    without it.
    [color=blue]
    > Thanks in advance! There seems to be nothing (but a bunch of stack
    > traces) when I google this.[/color]

    It's rarely called directly, but is called indirectly by everything
    that runs Python code.

    Comment

    Working...