This is one of the reasons why PEP 638 might fill a real gap. As I understand it, we could without much effort have a list!
macro that expands into the generator you wrote, and assembles the list.
This is one of the reasons why PEP 638 might fill a real gap. As I understand it, we could without much effort have a list!
macro that expands into the generator you wrote, and assembles the list.