Vladimir

39%
Flag icon
In other words, indices exposes the tricky logic that’s implemented in the built-in sequences to gracefully handle missing or negative indices and slices that are longer than the original sequence. This method produces “normalized” tuples of nonnegative start, stop, and stride integers tailored to a sequence of the given length.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview