Dict in Workspace can only be resolved if key is an integer or string

Issue #161 resolved
M. Gronle created an issue

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)

  1. Log in to comment