[pypy-svn] r13960 - pypy/dist/pypy/rpython

arigo at codespeak.net arigo at codespeak.net
Sun Jun 26 16:04:57 CEST 2005


Author: arigo
Date: Sun Jun 26 16:04:55 2005
New Revision: 13960

Modified:
   pypy/dist/pypy/rpython/rdict.py
Log:
This check can never match.  Can't use ConstantDicts for Char keys.


Modified: pypy/dist/pypy/rpython/rdict.py
==============================================================================
--- pypy/dist/pypy/rpython/rdict.py	(original)
+++ pypy/dist/pypy/rpython/rdict.py	Sun Jun 26 16:04:55 2005
@@ -33,7 +33,7 @@
             dictvalue = self.dictdef.dictvalue 
             return StrDictRepr(lambda: rtyper.getrepr(dictvalue.s_value), 
                                dictvalue)
-        elif isinstance(s_key, (annmodel.SomeInteger, annmodel.SomeChar)): 
+        elif isinstance(s_key, annmodel.SomeInteger):
             dictkey = self.dictdef.dictkey
             dictvalue = self.dictdef.dictvalue 
             return rconstantdict.ConstantDictRepr(



More information about the Pypy-commit mailing list