#NEWLINE# def _icut( drop_tail , n , step , seq = EMPTY ) : #NEWLINE# #INDENT# if ( seq is EMPTY ) : #NEWLINE# #INDENT# ( step , seq ) = ( n , step ) #NEWLINE# #UNINDENT# if ( isinstance ( seq , Sequence ) and ( not isinstance ( drop_tail , xrange ) ) ) : #NEWLINE# #INDENT# return _icut_seq ( drop_tail , n , step , seq ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return _icut_iter ( drop_tail , n , step , seq )