#NEWLINE# def __getitem__( self , key ) : #NEWLINE# #INDENT# if isinstance ( indices , slice ) : #NEWLINE# #INDENT# indices = key . indices ( len ( self ) ) #NEWLINE# return ScopeChain ( [ self . scopechain [ x ] for x in range ( * indices ) ] ) #NEWLINE# #UNINDENT# return self . scopechain [ key ]