[issue9285] A decorator for cProfile and profile modules

2011-03-30 Thread Tennessee Leeuwenburg
Tennessee Leeuwenburg added the comment: I have been working on a similar idea. I just wanted to raise an issue I ran into which might affect this code also. The decorated function ended up with a different function signature to the original inner function. This can be important sometimes. I

[issue9285] A decorator for cProfile and profile modules

2010-12-21 Thread Lukas Lueg
Lukas Lueg added the comment: +1 -- nosy: +ebfe ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue9285] A decorator for cProfile and profile modules

2010-12-14 Thread R. David Murray
Changes by R. David Murray : -- assignee: collinwinter -> stage: -> patch review type: -> feature request versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ _

[issue9285] A decorator for cProfile and profile modules

2010-07-17 Thread geremy condra
Changes by geremy condra : -- nosy: +debatem1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue9285] A decorator for cProfile and profile modules

2010-07-17 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : A patch including tests is in attachment. Example usage: >>> from cProfile import profile >>> >>> @profile ... def factorial(n): ... n = abs(int(n)) ... if n < 1: ... n = 1 ... x = 1 ... for i in range(1, n+1): ...