[pypy-commit] pypy default: Also specialize unicode(s, 'unicode_escape') it shows up with things like six.u()
alex_gaynor
noreply at buildbot.pypy.org
Sun Jan 12 23:36:45 CET 2014
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch:
Changeset: r68626:5b68b750f853
Date: 2014-01-12 14:34 -0800
http://bitbucket.org/pypy/pypy/changeset/5b68b750f853/
Log: Also specialize unicode(s, 'unicode_escape') it shows up with things
like six.u()
diff --git a/rpython/rlib/runicode.py b/rpython/rlib/runicode.py
--- a/rpython/rlib/runicode.py
+++ b/rpython/rlib/runicode.py
@@ -1154,6 +1154,8 @@
builder.append(res)
return pos
+# Specialize on the errorhandler when it's a constant
+ at specialize.arg_or_var(5)
def str_decode_unicode_escape(s, size, errors, final=False,
errorhandler=False,
unicodedata_handler=None):
More information about the pypy-commit
mailing list