From e7d8a78b8e6d60d3d75f9dc0599288d0101fff05 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Mon, 15 Oct 2001 22:14:29 +0000 Subject: runcall(): Expose the return value of the profiled function; this allows 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/hotshot/__init__.py b/Lib/hotshot/__init__.py index b0e58f6..c362fea 100644 --- a/Lib/hotshot/__init__.py +++ b/Lib/hotshot/__init__.py @@ -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) -- cgit v0.12