1
Vote

Expanding object with __getitem__ doesn't show fields

description

class Foo(object):
    def __getitem__(self, index):
        return index

obj = Foo()
obj.x = 123
print(obj)
Breakpoint at print, expand obj. Debugger spins the busy cursor for a couple seconds, then shows obj as having no children.

comments