x = 'outer'
G = 'GLOBAL'

def foo(a, b, c=1, *splat, **splatsplat):
    global G
d = 'inner'
b = 'stomped'
print(locals())
print(inspect.getargspec(foo))
foo(1, 2, 3, 'splat1', 'splat2', named='potato')
Is it possible to get formal argument names/values as a dictionary?