[Python-checkins] CVS: python/dist/src/Lib/hotshot __init__.py,1.1,1.2

Fred L. Drake fdrake@users.sourceforge.net
Mon, 15 Oct 2001 15:14:31 -0700


Update of /cvsroot/python/python/dist/src/Lib/hotshot
In directory usw-pr-cvs1:/tmp/cvs-serv28627

Modified Files:
	__init__.py 
Log Message:

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.


Index: __init__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/hotshot/__init__.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** __init__.py	2001/10/12 20:56:29	1.1
--- __init__.py	2001/10/15 22:14:29	1.2
***************
*** 36,38 ****
  
      def runcall(self, func, *args, **kw):
!         self._prof.runcall(func, args, kw)
--- 36,38 ----
  
      def runcall(self, func, *args, **kw):
!         return self._prof.runcall(func, args, kw)