Procs
proc PyErr_Format[E: PyBaseErrorObject](exc: E; msg: PyStrObject)
- Source Edit
Templates
template checkArgNum(expected: int; name = "")
- Source Edit
template checkArgNum(min, max: int; name = "")
- Source Edit
template checkArgNumAtLeast(expected: int; name = "")
- Source Edit
template checkArgNumAtMost(expected: int; name = "")
- Source Edit
template errorIfNot(S; expect: string; pyObj: PyObject; methodName: string; doIt: untyped = retIt)
- Source Edit
template errorIfNot(S; pyObj: PyObject; methodName: string; doIt: untyped = retIt)
- Source Edit
template errorIfNotBool(pyObj: PyObject; methodName: string; doIt: untyped = retIt)
- Source Edit
template errorIfNotString(pyObj: untyped; methodName: string; doIt: untyped = retIt)
- Source Edit
template getIterableWithCheck(obj: PyObject): (PyObject, UnaryMethod)
- Source Edit
template isThrownException(pyObj: PyObject): bool
- Source Edit