#NEWLINE# def __getitem__( self , item ) : #NEWLINE# #INDENT# if ( ( type ( item ) in ( unicode , str , bytes ) ) or issubclass ( type ( item ) , basestring ) ) : #NEWLINE# #INDENT# return getattr ( self , item ) #NEWLINE# #UNINDENT# if isinstance ( item , slice ) : #NEWLINE# #INDENT# return self . __class__ ( list . __getitem__ ( self , item ) , * self . _args , ** self . _kwargs ) #NEWLINE# #UNINDENT# return list . __getitem__ ( self , item )