DebugClients/Python3/DebugClientBase.py

branch
5_1_x
changeset 1473
c3bdd5ebafbc
parent 1472
cbaa32917694
child 1510
e75ecf2bd9dd
equal deleted inserted replaced
1472:cbaa32917694 1473:c3bdd5ebafbc
1404 exec('qvar = udict{0!s}'.format(access), globals(), loc) 1404 exec('qvar = udict{0!s}'.format(access), globals(), loc)
1405 qvar = loc["qvar"] 1405 qvar = loc["qvar"]
1406 # this has to be in line with VariablesViewer.indicators 1406 # this has to be in line with VariablesViewer.indicators
1407 elif rvar and rvar[0][-2:] in ["[]", "()", "{}"]: 1407 elif rvar and rvar[0][-2:] in ["[]", "()", "{}"]:
1408 loc = {"udict" : udict} 1408 loc = {"udict" : udict}
1409 exec('qvar = udict["{0!s}"][{1!s}]'.format(rvar[0][:-2], rvar[1]), 1409 exec('qvar = udict["{0!s}"][{1!s}]'.format(rvar[0][:-2], rvar[1]),
1410 globals(), loc) 1410 globals(), loc)
1411 qvar = loc["qvar"] 1411 qvar = loc["qvar"]
1412 else: 1412 else:
1413 qvar = udict[var[-1]] 1413 qvar = udict[var[-1]]
1414 qvtype = str(type(qvar))[1:-1].split()[1][1:-1] 1414 qvtype = str(type(qvar))[1:-1].split()[1][1:-1]
1422 if dictkeys is None: 1422 if dictkeys is None:
1423 dictkeys = dict.keys() 1423 dictkeys = dict.keys()
1424 else: 1424 else:
1425 # treatment for sequences and dictionaries 1425 # treatment for sequences and dictionaries
1426 if access: 1426 if access:
1427 exec "dict = dict%s" % access 1427 loc = {"dict" : dict}
1428 exec("dict = dict{0!s}".format(access), globals(), loc)
1429 dict = loc["dict"]
1428 else: 1430 else:
1429 dict = dict[dictkeys[0]] 1431 dict = dict[dictkeys[0]]
1430 if isDict: 1432 if isDict:
1431 dictkeys = dict.keys() 1433 dictkeys = dict.keys()
1432 else: 1434 else:

eric ide

mercurial