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

Function hasattr_checked

_pydevd_bundle/pydevd_utils.py:274–281  ·  view source on GitHub ↗
(obj, name)

Source from the content-addressed store, hash-verified

272
273
274def hasattr_checked(obj, name):
275 try:
276 getattr(obj, name)
277 except:
278 # i.e.: Handle any exception, not only AttributeError.
279 return False
280 else:
281 return True
282
283
284def getattr_checked(obj, name):

Callers 4

_get_jy_dictionaryMethod · 0.90
get_namesMethod · 0.90
get_variable_detailsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected