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

Function _get_name_info

Lib/dis.py:716–728  ·  view source on GitHub ↗

Helper to get optional details about named references Returns the dereferenced name as both value and repr if the name list is defined. Otherwise returns the sentinel value dis.UNKNOWN for the value and an empty string for its repr.

(name_index, get_name, **extrainfo)

Source from the content-addressed store, hash-verified

714 return argval, argrepr
715
716def _get_name_info(name_index, get_name, **extrainfo):
717 """Helper to get optional details about named references
718
719 Returns the dereferenced name as both value and repr if the name
720 list is defined.
721 Otherwise returns the sentinel value dis.UNKNOWN for the value
722 and an empty string for its repr.
723 """
724 if get_name is not None:
725 argval = get_name(name_index, **extrainfo)
726 return argval, argval
727 else:
728 return UNKNOWN, ''
729
730def _parse_varint(iterator):
731 b = next(iterator)

Callers 1

get_argval_argreprMethod · 0.85

Calls 1

get_nameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…