eric6/DebugClients/Python/DebugClientBase.py

branch
Variables Viewer
changeset 6988
87ad87ef1910
parent 6980
cf9351b063a8
child 7030
73779c4c135a
diff -r 419c20ec6cd3 -r 87ad87ef1910 eric6/DebugClients/Python/DebugClientBase.py
--- a/eric6/DebugClients/Python/DebugClientBase.py	Sun Apr 28 11:14:43 2019 +0200
+++ b/eric6/DebugClients/Python/DebugClientBase.py	Thu May 02 22:58:33 2019 +0200
@@ -181,6 +181,10 @@
     
     # keep these in sync with VariablesViewer.VariableItem.Indicators
     Indicators = ("()", "[]", "{:}", "{}")      # __IGNORE_WARNING_M613__
+    arrayTypes = {
+        'list', 'tuple', 'dict', 'set', 'frozenset', "class 'dict_items'",
+        "class 'dict_keys'", "class 'dict_values'"
+    }
     
     def __init__(self):
         """
@@ -1826,8 +1830,7 @@
                         valtype = valtypestr
                 
                 try:
-                    if valtype in ['list', 'tuple', 'dict', 'set', 'frozenset'
-                                   ]:
+                    if valtype in self.arrayTypes:
                         rvalue = "{0:d}".format(len(value))
                     elif valtype == 'array.array':
                         rvalue = "{0:d}|{1}".format(

eric ide

mercurial