Message181929
As for runcall() we haven't the ability to freely support kwargs *and* filename.
I see two possibilities.
Kill kwargs, as such:
+def runcall(func, *args, filename=None, sort=-1):
+ """Run func(*args) under profiler, optionally saving results in
+ filename.
+ """
...or make 'filename_' and 'sort_' two special name kwargs to be used as in:
>>> runcall(fun, foo=1, bar=2, filename_='...')
Also, there might be some value in adding 'strip_dirs' argument to those functions (run/runctx/runcall). |
|
Date |
User |
Action |
Args |
2013-02-11 19:57:16 | giampaolo.rodola | set | recipients:
+ giampaolo.rodola, gvanrossum, pitrou, eric.araujo |
2013-02-11 19:57:16 | giampaolo.rodola | set | messageid: <1360612636.72.0.397387964438.issue17130@psf.upfronthosting.co.za> |
2013-02-11 19:57:16 | giampaolo.rodola | link | issue17130 messages |
2013-02-11 19:57:16 | giampaolo.rodola | create | |
|