#NEWLINE# @ staticmethod #NEWLINE# def str_from_slice( entry ) : #NEWLINE# #INDENT# msg = [ ] #NEWLINE# for x in [ entry . start , entry . stop , entry . step ] : #NEWLINE# #INDENT# if ( x is None ) : #NEWLINE# #INDENT# msg . append ( '' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# msg . append ( str ( x ) ) #NEWLINE# #UNINDENT# #UNINDENT# return ':' . join ( msg )