I tried to ask a question normally once in here but nobody understands what I want to ask. So I\'ve found example in PHP.
// $_POST = array(\'address\' =>
Horribly late to the game, but I needed exactly this, and my solution was:
mydict = {'raw':'data', 'code': 500} raw, code = [mydict.get(k) for k in ['raw','code']]
That way it's explicit for reading and there's no potential clobbering of locals() (which is a magic that I'd rather avoid).