From: Fred Drake Date: Mon, 15 Oct 2001 22:14:29 +0000 (+0000) Subject: runcall(): Expose the return value of the profiled function; this allows X-Git-Tag: v2.2.1c1~1266 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7d8a78b8e6d60d3d75f9dc0599288d0101fff05;p=python 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. --- diff --git a/Lib/hotshot/__init__.py b/Lib/hotshot/__init__.py index b0e58f6ef1..c362fea15d 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)