Hacker News new | ask | show | jobs
by wampler 3649 days ago
Abusing locals() - learnt it from @jroller

def foo(): """ >>> foo() {'a': 1, 'c': 3, 'b': 2} """ a = 1 b = 2 c = 3 return locals()