On this page
types.AsyncGeneratorType
Up: types | Next: types.BuiltinFunctionType
Rel: types.BuiltinFunctionType, types.BuiltinMethodType, types.CapsuleType, types.CellType
Ref: docs.python.org — types.AsyncGeneratorType
Tags: #public #python3 #stdlib #types
Import
import types
from types import AsyncGeneratorType
Signature & Overview
types.AsyncGeneratorType()
types.AsyncGeneratorType class.
Methods & Attributes
AsyncGeneratorType.aclose(self, /)— aclose() -> raise GeneratorExit inside generator.AsyncGeneratorType.asend(self, object, /)— asend(v) -> send 'v' in generator.AsyncGeneratorType.athrow(...)— athrow(type[,value[,tb]]) raise exception in generator.
Usage
import types
async def ag(): yield 1
assert isinstance(ag(), types.AsyncGeneratorType)
Gotchas
- Type of
async deffunctions containingyield.
REPL Inspect
from types import AsyncGeneratorType
help(AsyncGeneratorType)
Linked from
- tuts/python3/stdlib_module/types
- tuts/python3/stdlib_module/types/BuiltinFunctionType
- tuts/python3/stdlib_module/types/BuiltinMethodType
- tuts/python3/stdlib_module/types/CapsuleType
- tuts/python3/stdlib_module/types/CellType
- tuts/python3/stdlib_module/types/ClassMethodDescriptorType
- tuts/python3/stdlib_module/types/CodeType
- tuts/python3/stdlib_module/types/coroutine
- tuts/python3/stdlib_module/types/CoroutineType
- tuts/python3/stdlib_module/types/DynamicClassAttribute
- tuts/python3/stdlib_module/types/EllipsisType
- tuts/python3/stdlib_module/types/FrameType
- tuts/python3/stdlib_module/types/FunctionType
- tuts/python3/stdlib_module/types/GeneratorType
- tuts/python3/stdlib_module/types/GenericAlias
- tuts/python3/stdlib_module/types/get_original_bases
- tuts/python3/stdlib_module/types/GetSetDescriptorType
- tuts/python3/stdlib_module/types/LambdaType
- tuts/python3/stdlib_module/types/MappingProxyType
- tuts/python3/stdlib_module/types/MemberDescriptorType
- tuts/python3/stdlib_module/types/MethodDescriptorType
- tuts/python3/stdlib_module/types/MethodType
- tuts/python3/stdlib_module/types/new_class
- tuts/python3/stdlib_module/types/prepare_class
- tuts/python3/stdlib_module/types/resolve_bases
Related notes
- tuts/python3/stdlib_module/types/BuiltinFunctionType Linked here; links to this page; shared tags: #stdlib, #types
- tuts/python3/stdlib_module/types/BuiltinMethodType Linked here; links to this page; shared tags: #stdlib, #types
- tuts/python3/stdlib_module/types/CapsuleType Linked here; links to this page; shared tags: #stdlib, #types
- tuts/python3/stdlib_module/types/CellType Linked here; links to this page; shared tags: #stdlib, #types
- tuts/python3/stdlib_module/types Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/types/ClassMethodDescriptorType links to this page; shared tags: #stdlib, #types
- tuts/python3/stdlib_module/types/CodeType links to this page; shared tags: #stdlib, #types
- tuts/python3/stdlib_module/types/coroutine links to this page; shared tags: #stdlib, #types
- tuts/python3/stdlib_module/types/CoroutineType links to this page; shared tags: #stdlib, #types
- tuts/python3/stdlib_module/types/DynamicClassAttribute links to this page; shared tags: #stdlib, #types