Not necessarily, there are all sorts of awesome things they could be doing since this is Python.  They could manipulate the AST at runtime, they could insert yield statement after every line in the function body, they could completely swap out the local namespace of variables with proxy objects that signal when something has gone wrong.