[pypy-svn] r17406 - pypy/dist/pypy/annotation

arigo at codespeak.net arigo at codespeak.net
Fri Sep 9 16:35:29 CEST 2005


Author: arigo
Date: Fri Sep  9 16:35:27 2005
New Revision: 17406

Modified:
   pypy/dist/pypy/annotation/dictdef.py
   pypy/dist/pypy/annotation/listdef.py
Log:
Be a bit more explicit in the __repr__ of ListDef and DictDef.


Modified: pypy/dist/pypy/annotation/dictdef.py
==============================================================================
--- pypy/dist/pypy/annotation/dictdef.py	(original)
+++ pypy/dist/pypy/annotation/dictdef.py	Fri Sep  9 16:35:27 2005
@@ -67,7 +67,7 @@
         self.dictvalue.generalize(s_value)
 
     def __repr__(self):
-        return '<%r: %r>' % (self.dictkey.s_value, self.dictvalue.s_value)
+        return '<{%r: %r}>' % (self.dictkey.s_value, self.dictvalue.s_value)
 
 
 MOST_GENERAL_DICTDEF = DictDef(None, SomeObject(), SomeObject())

Modified: pypy/dist/pypy/annotation/listdef.py
==============================================================================
--- pypy/dist/pypy/annotation/listdef.py	(original)
+++ pypy/dist/pypy/annotation/listdef.py	Fri Sep  9 16:35:27 2005
@@ -91,7 +91,7 @@
         self.listitem.generalize(s_value)
 
     def __repr__(self):
-        return '<%r>' % (self.listitem.s_value,)
+        return '<[%r]>' % (self.listitem.s_value,)
 
     def mutate(self):
         self.listitem.mutated = True



More information about the Pypy-commit mailing list