MCPcopy Index your code
hub / github.com/bpython/bpython / find_attribute_with_name

Function find_attribute_with_name

bpython/simpleeval.py:191–197  ·  view source on GitHub ↗
(node, name)

Source from the content-addressed store, hash-verified

189
190
191def find_attribute_with_name(node, name):
192 if isinstance(node, ast.Attribute) and node.attr == name:
193 return node
194 for item in ast.iter_child_nodes(node):
195 r = find_attribute_with_name(item, name)
196 if r:
197 return r
198
199
200def evaluate_current_expression(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected