I would like to do something like this
def f(): return { \'a\' : 1, \'b\' : 2, \'c\' : 3 } { a, b } = f() # or { \'a\', \'b\' } = f() ?
Consider making f a namedtuple Then you can just use f.a, f.b directly
f
namedtuple
f.a
f.b