Author: Armin Rigo <[email protected]>
Branch: jit-ordereddict
Changeset: r68554:69dbe74ad96b
Date: 2013-12-26 00:09 +0100
http://bitbucket.org/pypy/pypy/changeset/69dbe74ad96b/

Log:    Skip optimizing the standard string oopspec'ed operations if we try
        to do them on bytearrays.

diff --git a/rpython/jit/codewriter/jtransform.py 
b/rpython/jit/codewriter/jtransform.py
--- a/rpython/jit/codewriter/jtransform.py
+++ b/rpython/jit/codewriter/jtransform.py
@@ -1732,6 +1732,8 @@
                     "stroruni.copy_string_to_raw": 
EffectInfo.OS_UNI_COPY_TO_RAW
                     }
             CHR = lltype.UniChar
+        elif SoU.TO == rbytearray.BYTEARRAY:
+            raise NotSupported("bytearray operation")
         else:
             assert 0, "args[0].concretetype must be STR or UNICODE"
         #
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to