__aiter__
Dunder MethodPython 2.0+Expert
Returns an async iterator from an async iterable
Quick Info
- Documentation
- Official Docs
- Python Version
- 2.0+
Learn by Difficulty
Quick Example
python
class Example: def __aiter__(self): return "Example __aiter__" obj = Example() print(obj)
__aiter__ returns an async iterator from an async iterable. Implementing it lets you customize how Python interacts with your objects.
Try in PlaygroundTags
oopmagic-methodprotocolcore