- changed status to resolved
Dict in Workspace can only be resolved if key is an integer or string
Issue #161
resolved
If the following code snippet is executed
class Test:
def __init__(self, a, b):
self.a = a
self.b = b
d = {
2.456456456: Test(2, 3),
4: Test(6, 7),
"sdfsdf": Test(7, 8),
b"sdffg": Test(-1, 2),
}
the dictionary d can only partially be expanded in the workspace tree widget:
This is due to the fact that currently only integer and string is considered as key type in the workspace widget.
Maybe, this can be extended to other data types (e.g. Enumeration, bytes, float or any Python object).
Comments (1)
-
reporter - Log in to comment
Merged in improvedPyWorkspace (pull request #75)
ImprovedPyWorkspace (fixes issue
#161and fixes issue#191)→ <<cset 0ee885e70922>>