#NEWLINE# def update( * args , **kwds ) : #NEWLINE# #INDENT# 'od.update(E, **F) -> None.  Update od from dict/iterable E and F.\n\n            If E is a dict instance, does:           for k in E: od[k] = E[k]\n            If E has a .keys() method, does:         for k in E.keys(): od[k] = E[k]\n            Or if E is an iterable of items, does:   for k, v in E: od[k] = v\n            In either case, this is followed by:     for k, v in F.items(): od[k] = v\n\n            ' #NEWLINE# if ( len ( args ) > 2 ) : #NEWLINE# #INDENT# raise TypeError ( ( 'update() takes at most 2 positional arguments (%d given)' % ( len ( args ) , ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( not args ) : #NEWLINE# #INDENT# raise TypeError ( 'update() takes at least 1 argument (0 given)' ) #NEWLINE# #UNINDENT# #UNINDENT# self = args [ 0 ] #NEWLINE# other = ( ) #NEWLINE# if ( len ( args ) == 2 ) : #NEWLINE# #INDENT# other = key [ 1 ] #NEWLINE# #UNINDENT# if isinstance ( other , dict ) : #NEWLINE# #INDENT# for key in other : #NEWLINE# #INDENT# self [ key ] = other [ key ] #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if hasattr ( other , 'keys' ) : #NEWLINE# #INDENT# for key in other . keys ( ) : #NEWLINE# #INDENT# self [ key ] = other [ key ] #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# for ( key , value ) in other : #NEWLINE# #INDENT# self [ key ] = value #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# for ( key , value ) in kwds . items ( ) : #NEWLINE# #INDENT# self [ key ] = value