MCPcopy Index your code
hub / github.com/python/cpython / _get_func_name

Method _get_func_name

Tools/i18n/pygettext.py:617–624  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

615 return msgid
616
617 def _get_func_name(self, node):
618 match node.func:
619 case ast.Name(id=id):
620 return id
621 case ast.Attribute(attr=attr):
622 return attr
623 case _:
624 return None
625
626 def _is_string_const(self, node):
627 return isinstance(node, ast.Constant) and isinstance(node.value, str)

Callers 1

_extract_messageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected