yield in list comprehensions and generator expressions
Note: this was a bug in the CPython’s handling of yield in comprehensions and generator expressions, fixed in Python 3.8, with a deprecation warning in Python 3.7. See the Python bug report and the What’s New entries for Python 3.7 and Python 3.8. Generator expressions, and set and dict comprehensions are compiled to (generator) function … Read more