object --+
|
slice
slice([start,] stop[, step])
Create a slice object. This is used for extended slicing (e.g.
a[0:10:2]).
|
|
|
|
|
|
a new object with type S, a subtype of T
|
|
|
|
(start, stop, stride)
|
indices(S,
len)
Assuming a sequence of length len, calculate the start and stop
indices, and the stride length of the extended slice described by S. |
|
|
x.__getattribute__('name') <==> x.name
- Overrides:
object.__getattribute__
|
__hash__(x)
(Hashing function)
|
|
hash(x)
- Overrides:
object.__hash__
|
- Returns: a new object with type S, a subtype of T
- Overrides:
object.__new__
|
__repr__(x)
(Representation operator)
|
|
repr(x)
- Overrides:
object.__repr__
|
Assuming a sequence of length len, calculate the start and stop
indices, and the stride length of the extended slice described by S. Out
of bounds indices are clipped in a manner consistent with the handling of
normal slices.
- Returns: (start, stop, stride)
|