class _ListComp(node_classes.NodeNG): (source)
Known subclasses: astroid.nodes.scoped_nodes.ListComp
Class representing an ast.ListComp
node.
>>> import astroid >>> node = astroid.extract_node('[thing for thing in things if thing]') >>> node <ListComp l.1 at 0x7f23b2e418d0>
Method | bool_value |
Determine the boolean value of this node. |
Method | get_children |
Undocumented |
Method | postinit |
Do some setup after initialisation. |
Instance Variable | elt |
The element that forms the output of the expression. |
Instance Variable | generators |
The generators that are looped through. |
Class Variable | _astroid_fields |
Undocumented |
Returns | |
Uninferable | The boolean value of this node.
For a ListComp this is always Uninferable . |