#NEWLINE# def __init__( self , start , stop , size , stride , single ) : #NEWLINE# #INDENT# if ( stop < start ) : #NEWLINE# #INDENT# raise ValueError ( 'end offset is before start offset' ) #NEWLINE# #UNINDENT# self . start = start #NEWLINE# self . stop = stop #NEWLINE# self . size = size #NEWLINE# self . stride = stride #NEWLINE# self . single = single #NEWLINE# assert ( ( not self ) or ( size == 1 ) )