From: Stefan Behnel Date: Sat, 10 Jan 2009 16:58:38 +0000 (+0100) Subject: print size of list attributes on node dump X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7f265e5c9fedd570c193358ee27c80cd539108dd;p=cython.git print size of list attributes on node dump --- diff --git a/Cython/Compiler/Visitor.py b/Cython/Compiler/Visitor.py index 7e2e2e0f..102c5b05 100644 --- a/Cython/Compiler/Visitor.py +++ b/Cython/Compiler/Visitor.py @@ -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: