Last active
October 10, 2015 21:48
-
-
Save PiDelport/3756230 to your computer and use it in GitHub Desktop.
Revisions
-
PiDelport renamed this gist
Aug 13, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
PiDelport created this gist
Sep 20, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ import inspect def format_call(func, *positional, **named): _locals = inspect.getcallargs(func, *positional, **named) spec = inspect.getargspec(func) argvalues = inspect.formatargvalues(spec.args, spec.varargs, spec.keywords, _locals) return '{}{}'.format(func.__name__, argvalues)