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\' =>
Nothing really new here, just a consolidation of one anwser and an illustration of what @John Y meant in his answer:
mydict = {'raw': 'data', 'code': 500}
def extract(dct, namespace=None):
if not namespace: namespace = globals()
namespace.update(dct)
extract(mydict)
print raw
print code
class Extract:
def __init__(self, dct):
self.__dict__.update(dct)
obj = Extract(mydict)
print obj.raw
print obj.code