Author: Alex Gaynor <[email protected]>
Branch: applevel-builder
Changeset: r45052:1fd3637e2f95
Date: 2011-06-21 18:23 -0700
http://bitbucket.org/pypy/pypy/changeset/1fd3637e2f95/
Log: Remove special case, it would could create silly bridge, if we need
it we can add an append_char method (or make the JIT recognize the
method and virtual strings of known length 1).
diff --git a/pypy/module/__pypy__/interp_builders.py
b/pypy/module/__pypy__/interp_builders.py
--- a/pypy/module/__pypy__/interp_builders.py
+++ b/pypy/module/__pypy__/interp_builders.py
@@ -24,10 +24,7 @@
@unwrap_spec(s=unicode)
def descr_append(self, space, s):
self._check_done(space)
- if len(s) == 1:
- self.builder.append(s[0])
- else:
- self.builder.append(s)
+ self.builder.append(s)
@unwrap_spec(s=unicode, start=int, end=int)
def descr_append_slice(self, space, s, start, end):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit