#NEWLINE# def __getitem__( self , key ) : #NEWLINE# #INDENT# if isinstance ( key , basestring ) : #NEWLINE# #INDENT# for construct in self . constructs : #NEWLINE# #INDENT# if ( key == construct . name ) : #NEWLINE# #INDENT# return construct #NEWLINE# #UNINDENT# #UNINDENT# return None #NEWLINE# #UNINDENT# return self . constructs [ key ]