Iterators
iterator getmembers[T](obj: T): GetMemberType
- Source Edit
iterator getmembers[T](obj: T; predict: GetMembersPredict): GetMemberType
- Source Edit
Templates
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