[pypy-svn] r79475 - pypy/branch/rlist-jit/pypy/annotation
arigo at codespeak.net
arigo at codespeak.net
Wed Nov 24 16:44:10 CET 2010
Author: arigo
Date: Wed Nov 24 16:44:09 2010
New Revision: 79475
Modified:
pypy/branch/rlist-jit/pypy/annotation/listdef.py
Log:
Improve the repr.
Modified: pypy/branch/rlist-jit/pypy/annotation/listdef.py
==============================================================================
--- pypy/branch/rlist-jit/pypy/annotation/listdef.py (original)
+++ pypy/branch/rlist-jit/pypy/annotation/listdef.py Wed Nov 24 16:44:09 2010
@@ -189,9 +189,11 @@
self.listitem.generalize(s_value)
def __repr__(self):
- return '<[%r]%s%s>' % (self.listitem.s_value,
+ return '<[%r]%s%s%s%s>' % (self.listitem.s_value,
self.listitem.mutated and 'm' or '',
- self.listitem.resized and 'r' or '')
+ self.listitem.resized and 'r' or '',
+ self.listitem.must_not_mutate and '!M' or '',
+ self.listitem.must_not_resize and '!R' or '')
def mutate(self):
self.listitem.mutate()
More information about the Pypy-commit
mailing list