diff options
author | Fred Drake <fdrake@acm.org> | 2001-10-15 22:14:29 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-10-15 22:14:29 (GMT) |
commit | e7d8a78b8e6d60d3d75f9dc0599288d0101fff05 (patch) | |
tree | 98a44be846090bff0d9bb9d7afacbe7975496fc6 /Lib/hotshot | |
parent | 30d1c75d1507f49925d18ce6fdc58b6183f31d9e (diff) | |
download | cpython-e7d8a78b8e6d60d3d75f9dc0599288d0101fff05.zip cpython-e7d8a78b8e6d60d3d75f9dc0599288d0101fff05.tar.gz cpython-e7d8a78b8e6d60d3d75f9dc0599288d0101fff05.tar.bz2 |
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.
Diffstat (limited to 'Lib/hotshot')
-rw-r--r-- | Lib/hotshot/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |