eric6/DebugClients/Python/DebugVariables.py

changeset 8205
4a0f1f896341
parent 7988
c4c17121eff8
child 8207
d359172d11be
equal deleted inserted replaced
8204:fd477cded1c1 8205:4a0f1f896341
487 return var[attribute] 487 return var[attribute]
488 except Exception: 488 except Exception:
489 return getattr(var, attribute, None) 489 return getattr(var, attribute, None)
490 490
491 expectedID = int(attribute.split(" (ID:")[-1][:-1]) 491 expectedID = int(attribute.split(" (ID:")[-1][:-1])
492 for key in var.keys(): 492 for key in var:
493 if id(key) == expectedID: 493 if id(key) == expectedID:
494 return var.getlist(key) 494 return var.getlist(key)
495 495
496 return None 496 return None
497 497

eric ide

mercurial