Giampaolo Rodola' added the comment:

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).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17130>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to