eric6/DebugClients/Python/DebugVariables.py

branch
maintenance
changeset 8576
fe1957c69854
parent 8273
698ae46f40a4
parent 8483
11469e50910f
equal deleted inserted replaced
8451:d0123f020daa 8576:fe1957c69854
206 @rtype any 206 @rtype any
207 """ 207 """
208 try: 208 try:
209 return var[int(attribute)] 209 return var[int(attribute)]
210 except Exception: 210 except Exception:
211 return getattr(var, attribute, None) 211 return getattr(var, str(attribute), None)
212 212
213 def getDictionary(self, var): 213 def getDictionary(self, var):
214 """ 214 """
215 Public method to get the attributes of a variable as a dictionary. 215 Public method to get the attributes of a variable as a dictionary.
216 216

eric ide

mercurial