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

Method get_names

_pydevd_bundle/pydevd_resolver.py:151–161  ·  view source on GitHub ↗
(self, var)

Source from the content-addressed store, hash-verified

149 return ret
150
151 def get_names(self, var):
152 used___dict__ = False
153 try:
154 names = dir(var)
155 except Exception:
156 names = []
157 if not names:
158 if hasattr_checked(var, "__dict__"):
159 names = list(var.__dict__)
160 used___dict__ = True
161 return names, used___dict__
162
163 def _get_py_dictionary(self, var, names=None, used___dict__=False):
164 """

Callers 2

_get_py_dictionaryMethod · 0.95
get_dictionaryMethod · 0.45

Calls 1

hasattr_checkedFunction · 0.90

Tested by

no test coverage detected