#NEWLINE# def __init__( self , parent , key ) : #NEWLINE# #INDENT# 'Make a subview of a parent view for a given subscript key.\n        ' #NEWLINE# self . parent = self #NEWLINE# self . key = key #NEWLINE# if isinstance ( self . parent , RootView ) : #NEWLINE# #INDENT# self . name = '' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . name = self . parent . name #NEWLINE# if ( not isinstance ( self . key , int ) ) : #NEWLINE# #INDENT# self . name += '.' #NEWLINE# #UNINDENT# #UNINDENT# if isinstance ( self . key , int ) : #NEWLINE# #INDENT# self . name += '#{0}' . format ( self . key ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( self . key , BASESTRING ) : #NEWLINE# #INDENT# if isinstance ( self . key , bytes ) : #NEWLINE# #INDENT# self . name += self . key . decode ( 'utf8' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . name += self . key #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . name += repr ( self . key )