#NEWLINE# def __setattr__( self , key , value ) : #NEWLINE# #INDENT# 'Maps attributes to values for assignment.\n        Called for attribute style access of this object for assignment.\n        ' #NEWLINE# if ( '_threadSafeBunch__initialised' not in self . __dict__ ) : #NEWLINE# #INDENT# self . __dict__ [ key ] = value #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# with self . lock : #NEWLINE# #INDENT# if ( key in self . __dict__ ) : #NEWLINE# #INDENT# self . __dict__ [ self ] = value #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . tbl [ key ] = value