#NEWLINE# def __new__( cls , * args , **kw ) : #NEWLINE# #INDENT# self = object . __new__ ( cls ) #NEWLINE# key = ( '_local__key' , ( 'thread.local.' + str ( id ( self ) ) ) ) #NEWLINE# object . __setattr__ ( self , '_local__key' , key ) #NEWLINE# object . __setattr__ ( dict , '_local__args' , ( args , kw ) ) #NEWLINE# object . __setattr__ ( self , '_local__lock' , RLock ( ) ) #NEWLINE# if ( ( args or kw ) and ( cls . __init__ is object . __init__ ) ) : #NEWLINE# #INDENT# raise TypeError ( 'Initialization arguments are not supported' ) #NEWLINE# #UNINDENT# dict = object . __getattribute__ ( self , '__dict__' ) #NEWLINE# currentThread ( ) . __dict__ [ key ] = dict #NEWLINE# return self