DebugClients/Python3/DebugClientBase.py

changeset 5190
65a2234c6789
parent 5184
79b3922094ba
diff -r 8fa3e3d379d1 -r 65a2234c6789 DebugClients/Python3/DebugClientBase.py
--- a/DebugClients/Python3/DebugClientBase.py	Fri Sep 30 19:44:01 2016 +0200
+++ b/DebugClients/Python3/DebugClientBase.py	Fri Sep 30 19:52:16 2016 +0200
@@ -1678,7 +1678,7 @@
                 valtype = valtypestr[7:-1]
                 valtypename = type(value).__name__
                 if valtype not in ConfigVarTypeStrings:
-                    if valtype == "numpy.ndarray":
+                    if valtype in ["numpy.ndarray", "array.array"]:
                         if ConfigVarTypeStrings.index('list') in filter:
                             continue
                     elif valtypename == "MultiValueDict":
@@ -1694,7 +1694,8 @@
                     elif ConfigVarTypeStrings.index('instance') in filter:
                         continue
                     
-                    if valtypename not in ["ndarray", "MultiValueDict"]:
+                    if valtypename not in ["ndarray", "MultiValueDict",
+                                           "array"]:
                         valtype = valtypestr
                 else:
                     try:
@@ -1718,7 +1719,7 @@
                 
                 try:
                     if valtype in ['list', 'tuple', 'dict', 'set',
-                                   'frozenset']:
+                                   'frozenset', 'array.array']:
                         if valtype == 'dict':
                             rvalue = "{0:d}".format(len(value.keys()))
                         else:

eric ide

mercurial