you could always do two things:
- use only keyword args
- decorate the function to print out the kwargs you passed in.
something like:
def printkwargs(func):
@functools.wraps(func)
def wrapper(**kwargs):
ret = func(**kwargs)
print ret, kwargs
return wrapper
@printkwargs
def SharedData(...):...
i did not test this, but it should be ok
updated to include *args:
def printkwargs(func):
@functools.wraps(func)
def wrapper(*args, **kwargs):
ret = func(*args, **kwargs)
print ret, args, kwargs
return wrapper
by grabbing the locals dictionary:
from copy import copy
def f(a, b, c):
l = copy(locals())