#NEWLINE# def __getitem__( self , index ) : #NEWLINE# #INDENT# 'Get the item(s) at the specified index/slice.' #NEWLINE# if isinstance ( index , slice ) : #NEWLINE# #INDENT# return [ self . _get_single_external ( i ) for i in xrange ( * index . indices ( len ( self ) ) ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# index = self . _checkindex ( index ) #NEWLINE# return self . _get_single_external ( index )