Browse Source

Profile

pull/9/head
Jure Šorn 6 years ago
parent
commit
90e0e6b7b8
1 changed files with 1 additions and 1 deletions
  1. 2
      README.md

2
README.md

@ -1401,7 +1401,7 @@ def tracer(func):
"""Prints arguments and output of a decorated function."""
def out(*args, **kwargs):
result = func(*args, **kwargs)
arg_list = [str(x) for x in args]
arg_list = [repr(x) for x in args]
arg_list += [f'{k}={v}' for k, v in kwargs.items()]
arg_str = ', '.join(arg_list)
print(f'{func.__name__}({arg_str}) = {result}')

Loading…
Cancel
Save