profile.run won't run!

Rainer Deyke root at rainerdeyke.com
Fri Jun 15 11:38:12 EDT 2001


"Nick Perkins" <nperkins7 at home.com> wrote in message
news:Y_gW6.238366$eK2.50840616 at news4.rdc1.on.home.com...
>
> "Rainer Deyke" <root at rainerdeyke.com> wrote in message
> news:24gW6.284794$oc7.18522490 at news2.rdc2.tx.home.com...
> > ...
> >   import __main__
> >   __main__.solve_problem = solve_problem
> >   profile.run('solve_problem')

My mistake; this should be:

  profile.run('solve_problem()')

Somehow I forgot the parentheses.

> print 'profiled:'
> profile.run('solve_problem')

Same problem here.


--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games           -           http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor





More information about the Python-list mailing list