src/pylib/pyerrors/signals

Source   Edit  

Types

GeneratorExit = object of CatchableError
Source   Edit  
StopAsyncIteration = object of CatchableError
Source   Edit  
StopIteration = StopIterationT[NoneType]
Note: CPython's StopIteration is not generics, at least as of 3.13
Source   Edit  
StopIterationT[T] = object of CatchableError
  value*: T                  ## generator return value
EXT. as StopIteraton's value was not statically typed in Python, this must be used for those whose value is not None Source   Edit  

Procs

func `$`(self: StopIteration): string {....raises: [], tags: [], forbids: [].}
Source   Edit  
func `$`(self: StopIterationT): string
Source   Edit  
func msg(self: StopIteration): string {....raises: [], tags: [], forbids: [].}
Source   Edit  
func msg(self: StopIterationT): string
Source   Edit  
func newStopIteration(): ref StopIteration {....raises: [], tags: [], forbids: [].}
Source   Edit  
func newStopIteration[T](value: T): ref StopIterationT[T]
Source   Edit