src/pylib/builtins/pyslice

Source   Edit  

Types

PySlice = ref object of PySlice1
  step*: int
Source   Edit  
PySlice1 = ref object of RootObj
  start*, stop*: int
slice of 1 step Source   Edit  

Procs

func `<`(self`gensym3: PySlice; o`gensym3: PySlice): bool {....raises: [],
    tags: [], forbids: [].}
Source   Edit  
func `<=`(self`gensym6: PySlice; o`gensym6: PySlice): bool {....raises: [],
    tags: [], forbids: [].}
Source   Edit  
func `==`(self: PySlice; o: PySlice): bool {....raises: [], tags: [], forbids: [].}
Source   Edit  
func indices(self: PySlice; length: int): (int, int, int) {.
    ...raises: [ValueError], tags: [], forbids: [].}
Source   Edit  
func repr(self: PySlice): string {....raises: [], tags: [], forbids: [].}
Source   Edit  
func slice(start, stop: int): PySlice1 {....raises: [], tags: [], forbids: [].}
Source   Edit  
func slice(start, stop: int; step: int): PySlice {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
func slice(stop: int): PySlice1 {....raises: [], tags: [], forbids: [].}
Source   Edit  

Converters

converter toNimSlice(s: PySlice1): Slice[int] {....raises: [], tags: [],
    forbids: [].}
Source   Edit