]> granicus.if.org Git - python/commitdiff
runcall(): Expose the return value of the profiled function; this allows
authorFred Drake <fdrake@acm.org>
Mon, 15 Oct 2001 22:14:29 +0000 (22:14 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 15 Oct 2001 22:14:29 +0000 (22:14 +0000)
    changing an application to collect profile data on one part of the
    app while still making use of the profiled component, without relying
    on side effects.

Lib/hotshot/__init__.py

index b0e58f6ef1d776e9243aaebddfb33d224f1b5103..c362fea15d53ddf1ca40bf2d71ec2b8b9dc30147 100644 (file)
@@ -35,4 +35,4 @@ class Profile:
         return self
 
     def runcall(self, func, *args, **kw):
-        self._prof.runcall(func, args, kw)
+        return self._prof.runcall(func, args, kw)