Re: Profiler throws NameError on any function

2009-03-28 Thread Gabriel Genellina
En Thu, 26 Mar 2009 11:42:57 -0300, Philipp Lies escribió: I'm trying to run the python profiler on some code but I always get NameErrors, even for the simplest case taken from the docs: import profile def foo(): a = 5 def prof(): profile.run('foo()') When I run prof() I get the foll

Profiler throws NameError on any function

2009-03-26 Thread Philipp Lies
Hi, I'm trying to run the python profiler on some code but I always get NameErrors, even for the simplest case taken from the docs: import profile def foo(): a = 5 def prof(): profile.run('foo()') When I run prof() I get the following output: Traceback (most recent call last): File "",