MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / resolve_var_object

Function resolve_var_object

_pydevd_bundle/pydevd_vars.py:149–164  ·  view source on GitHub ↗

Resolve variable's attribute :param var: an object of variable :param attrs: a sequence of variable's attributes separated by \t (i.e.: obj\tattr1\tattr2) :return: a value of resolved variable's attribute

(var, attrs)

Source from the content-addressed store, hash-verified

147
148
149def resolve_var_object(var, attrs):
150 """
151 Resolve variable's attribute
152
153 :param var: an object of variable
154 :param attrs: a sequence of variable's attributes separated by \t (i.e.: obj\tattr1\tattr2)
155 :return: a value of resolved variable's attribute
156 """
157 if attrs is not None:
158 attr_list = attrs.split("\t")
159 else:
160 attr_list = []
161 for k in attr_list:
162 type, _type_name, resolver = get_type(var)
163 var = resolver.resolve(var, k)
164 return var
165
166
167def resolve_compound_var_object_fields(var, attrs):

Callers

nothing calls this directly

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected