by ChargingWookie · 11y ago · 0 comments
It is a little more involved, but basically you define a syntax for list comprehension and then parse it using the macro to generate the final result.
We implement yield-from on Python2 using a macro. http://dustycloud.org/blog/how-hy-backported-yield-from-to-p...