Thanks for the reply! I guess I didn’t search hard enough before asking, my bad.
Even though that post didn’t seem to going anywhere, I still want to see this kind of feature get implemented. I’d do it myself, but I’m honestly not that great at C and hardly understand Python’s source code structure.
Also, this comment has another syntax change that might be required for this suggestion:
[item for item in iterable while item < 10] # <==> for item in iterable while item < 10: yield item