Author giampaolo.rodola
Recipients eric.araujo, giampaolo.rodola, gvanrossum, pitrou
Date 2013-02-11.19:57:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1360612636.72.0.397387964438.issue17130@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2013-02-11 19:57:16giampaolo.rodolasetrecipients: + giampaolo.rodola, gvanrossum, pitrou, eric.araujo
2013-02-11 19:57:16giampaolo.rodolasetmessageid: <1360612636.72.0.397387964438.issue17130@psf.upfronthosting.co.za>
2013-02-11 19:57:16giampaolo.rodolalinkissue17130 messages
2013-02-11 19:57:16giampaolo.rodolacreate