Ben Kaplan <bsk16 <at> case.edu> writes: > First thin it does is evaluate foo(), which returns None. So you're calling > profile.run(None) > > There's nothing special about profile.run- you have to hand it something to > execute, not something already executed. Try calling > Profile.run(doSomething) # no parenthesis for doSomething.
i'm reading your message more carefully, and so tried calling profile.run(main), without any parens (and absorbing the argument into the function's body for this test). same error!? -- http://mail.python.org/mailman/listinfo/python-list