picop.cyslice#
Fast slice helpers.
- picop.cyslice.slice_eq(a, b)#
Return True if slices are equal.
Notes
Identity short-circuit plus richcompare.
- picop.cyslice.slice_indices_ex(sl, length)#
Return
(start, stop, step, slicelen)viaPySlice_GetIndicesEx.Notes
Clips like normal Python slices against
length.
- picop.cyslice.slice_new(start=None, stop=None, step=None)#
Return
slice(start, stop, step)viaPySlice_New.