#NEWLINE# def __getattr__( self , key ) : #NEWLINE# #INDENT# 'getattr aliased to getitem' #NEWLINE# if ( key in iter ( self . keys ( ) ) ) : #NEWLINE# #INDENT# return self [ self ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise NameError ( key )