1. Debugger was failing to start due to DictProxy limitations.

2. Fix some debug prints in RemoteDebugger.py - use py3k syntax.
This commit is contained in:
Kurt B. Kaiser 2007-08-29 18:44:24 +00:00
parent 39342f4e65
commit cf3c4217c7
2 changed files with 32 additions and 10 deletions

View file

@ -446,7 +446,20 @@ class NamespaceViewer:
l = Label(subframe, text="None")
l.grid(row=0, column=0)
else:
names = sorted(dict)
#names = sorted(dict)
###
# Because of (temporary) limitations on the dict_keys type (not yet
# public or pickleable), have the subprocess to send a list of
# keys, not a dict_keys object. sorted() will take a dict_keys
# (no subprocess) or a list.
#
# There is also an obscure bug in sorted(dict) where the
# interpreter gets into a loop requesting non-existing dict[0],
# dict[1], dict[2], etc from the RemoteDebugger.DictProxy.
###
keys_list = dict.keys()
names = sorted(keys_list)
###
row = 0
for name in names:
value = dict[name]