Types
PyEllipsisObject = ref object of PyObject
- Source Edit
Lets
pyEllipsis = newPyEllipsisSimple()
- Source Edit
pyEllipsisObjectType {.inject.} = newPyType("ellipsis", pyObjectType)
- Source Edit
pySliceObjectType {.inject.} = newPyType("slice", pyObjectType)
- Source Edit
Procs
proc calLen(self: PySliceObject; res: var int): PyOverflowErrorObject {. ...raises: [], tags: [RootEffect], forbids: [].}
- Get the length of the slice. .. note:: python's slice has no __len__. this is just a convenience method for internal use. Source Edit
proc getSliceItems[T](slice: PySliceObject; src: openArray[T]; dest: var (seq[T] | string)): PyObject
- Source Edit
proc newPyEllipsisObjectMagic(args: openArray[PyObject] = @[]; kwargs: PyKwArgType = nil): PyObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc newPyEllipsisSimple(): PyEllipsisObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc newPySlice(start, stop, step: PyObject): PyObject {....raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc newPySliceSimple(): PySliceObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc ofExactPyEllipsisObject(obj`gensym21: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofExactPySliceObject(obj`gensym0: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofPyEllipsisObject(obj`gensym21: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofPySliceObject(obj`gensym0: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc reprPyEllipsisObjectMagic(selfNoCast: PyObject): PyObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
Methods
method `$`(self: PyEllipsisObject): string {....raises: [], tags: [], forbids: [].}
- Source Edit
Templates
template calLenOrRetOF(self: PySliceObject): int
- Source Edit