'Convenience function, which is shorthand for setting multiple
variables at once.
It is a simple shorthand such that::
context.update(os = \'linux\', arch = \'arm\', ...)
is equivalent to::
context.os   = \'linux\'
context.arch = \'arm\'
The following syntax is also valid::
context.update({\'os\': \'linux\', \'arch\': \'arm\'})
Arguments:
kwargs: Variables to be assigned in the environment.
Examples:
>>> context.clear()
>>> context.update(arch = \'i386\', os = \'linux\')
>>> context.arch, context.os
(\'i386\', \'linux\')'

def update(self, *args, **kwargs):

    for arg in args:
        self.update(**arg)
    for (k, v) in kwargs.items():
        setattr(self, k, v)
