#NEWLINE# def __create_Readonly( self , name ) : #NEWLINE# #INDENT# private_name = ( ( '_' + name ) + '_value' ) #NEWLINE# def getter( ) : #NEWLINE# #INDENT# return self [ private_name ] #NEWLINE# #UNINDENT# def setter( x ) : #NEWLINE# #INDENT# raise AttributeError ( ( 'Readonly %s is not settable' % name ) ) #NEWLINE# #UNINDENT# self [ private_name ] = value2 = self [ ( ( '_' + name ) + '_func' ) ] ( ) #NEWLINE# self . emit ( name , dict ( new_value = value2 , old_value = value2 ) ) #NEWLINE# opts = { #NEWLINE# #INDENT# 'enumerable' : True , #NEWLINE# 'configurable' : True , #NEWLINE# 'get' : getter , #NEWLINE# 'set' : setter , #NEWLINE# #UNINDENT# } #NEWLINE# Object . defineProperty ( self , name , opts )