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.
This commit is contained in:
Fred Drake 2001-10-15 22:14:29 +00:00
parent 30d1c75d15
commit e7d8a78b8e

View 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)