The strange relationship between objects, functions, generators and coroutines
The strange relationship between objects, functions, generators and coroutines -- In this article, I’d like to investigate some relationships between functions, objects, generators and coroutines in Python. At a theoretical level, these are very different concepts, but because of Python’s dynamic nature, many of them can appear to be used interchangeably.