News for hackers. Stuff that matters.
Re:Ask HN: What's your favorite Python quirk? by wampler on Saturday June 18, 2016 @09:47AM (#11928575)
Abusing locals() - learnt it from @jroller

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

There are no comments on this comment yet.