Iterators
iterator getmembers[T](obj: T): GetMemberType
- Source Edit
iterator getmembers[T](obj: T; predict: GetMembersPredict): GetMemberType
- Source Edit
Templates
template getdoc(obj: untyped): OptionalObj[PyStr]
- Source Edit
template getmembers(obj): PyList
- Source Edit
template getmembers(obj; predict: GetMembersPredict): PyList
- Source Edit
template getmembers_static(obj): untyped
-
Admonition: since Python 3.11Source Edit
template getmembers_static(obj; predict: GetMembersPredict): untyped
-
Admonition: since Python 3.11Source Edit
template getmodulename(obj: PyStr): OptionalObj[PyStr]
- Source Edit
template getsourcefile(obj: untyped): OptionalObj[PyStr]
- Source Edit
template getsourcelines(obj: typed): (PyList[PyStr], int)
-
get source code of the object:
- the first element is the source code
- the second element is the line number of the first line of the source code
template isawaitable(obj: typed): bool
-
Admonition: since Python 3.5Source Edit
template iscoroutinefunction(obj: typed): bool
-
Admonition: since Python 3.5Source Edit
template markcoroutinefunction[T](obj: T): T
-
Admonition: since Python 3.12Source Edit
Exports
-
getline, iscoroutine, istraceback, isfunction, isbuiltin, isframe, isawaitable, ismethod, iscoroutinefunction, ismodule, isclass, newPyList, newPyList, setLen, <=, list, <, items, ==, <=, newPyListOfStr, ==, newPyList, repr, asSeq, newPyList, <=, PyList, newPyList, mitems, newPyListOfCap, <, newPyListOfStr, ==, @, checkLenientOps, getPtr, newPyList, <, asSeq, pairs, runeLenAt, not, str, str, toPyStr, contains, substr, byteLen, str, items, StringLike, ==, str, toNimString, +, ==, str, chars, contains, and, getChar, $, len, +=, str, +=, len, toPyStr, PyStr, runes, [], ==, runeAtPos, or, contains, +, toNimStr, fspath, +=, toPyStr, [], [], ==, unsafeGet, is, expOptObjCvt, unsafeToNone