print size of list attributes on node dump
authorStefan Behnel <scoder@users.berlios.de>
Sat, 10 Jan 2009 16:58:38 +0000 (17:58 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 10 Jan 2009 16:58:38 +0000 (17:58 +0100)
Cython/Compiler/Visitor.py

index 7e2e2e0f6cfac8cbed918a049d979eeca5ba0a2b..102c5b0544b0b2db525413afdcb28652be0873cd 100644 (file)
@@ -117,7 +117,7 @@ class TreeVisitor(BasicVisitor):
             if value is None or value == 0:
                 continue
             elif isinstance(value, list):
-                value = u'[...]'
+                value = u'[...]/%d' % len(value)
             elif not isinstance(value, (str, unicode, long, int, float)):
                 continue
             else: