Message181980
profile and cProfile modules define the same utility functions (run() and runctx()) which use the same code except the profiler class.
Considering that we're going to add 2 new utility functions (runcall() and runblock(), see issue9285 and issue17130) I think we should refactor the code in order to avoid this code duplication.
Patch in attachment does that.
The approach I came up with looks a bit hackish though so I'd like to get some feedback. Is it acceptable? |
|
Date |
User |
Action |
Args |
2013-02-12 22:40:09 | giampaolo.rodola | set | recipients:
+ giampaolo.rodola, georg.brandl, pitrou |
2013-02-12 22:40:09 | giampaolo.rodola | set | messageid: <1360708809.53.0.302633878748.issue17197@psf.upfronthosting.co.za> |
2013-02-12 22:40:09 | giampaolo.rodola | link | issue17197 messages |
2013-02-12 22:40:09 | giampaolo.rodola | create | |
|