[pypy-svn] pypy default: replacing list content is non-rpython
gutworth
commits-noreply at bitbucket.org
Thu Jan 20 21:02:51 CET 2011
Author: Benjamin Peterson <benjamin at python.org>
Branch:
Changeset: r41090:7e8730a87406
Date: 2011-01-20 13:59 -0600
http://bitbucket.org/pypy/pypy/changeset/7e8730a87406/
Log: replacing list content is non-rpython
diff --git a/pypy/objspace/std/bytearrayobject.py b/pypy/objspace/std/bytearrayobject.py
--- a/pypy/objspace/std/bytearrayobject.py
+++ b/pypy/objspace/std/bytearrayobject.py
@@ -78,11 +78,11 @@
if count < 0:
raise OperationError(space.w_ValueError,
space.wrap("bytearray negative count"))
- w_bytearray.data[:] = ['\0'] * count
+ w_bytearray.data = ['\0'] * count
return
data = makebytearraydata_w(space, w_source)
- w_bytearray.data[:] = data
+ w_bytearray.data = data
def len__Bytearray(space, w_bytearray):
result = len(w_bytearray.data)
More information about the Pypy-commit
mailing list