def on_listcomp(self, node):    # ('elt', 'generators')
        out = []
        for tnode in node.generators:
            if tnode.__class__ == ast.comprehension:
                for val in self.run(tnode.iter):
                    self.node_assign(tnode.target, val)
                    if len(self.error) > 0:
                        return
                    add = True
                    for cond in tnode.ifs:
                        add = add and self.run(cond)
                    if add:
                        out.append(self.run(node.elt))
        return out
list comprehension
dataset/ETHPy150Open xraypy/xraylarch/lib/interpreter.py/Interpreter.on_listcomp