[pypy-svn] pypy default: (arigo, mfoord, fijal) Kill unnecessary copying
fijal
commits-noreply at bitbucket.org
Tue Jan 18 14:25:02 CET 2011
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch:
Changeset: r40849:e9ddb7a51272
Date: 2011-01-18 15:11 +0200
http://bitbucket.org/pypy/pypy/changeset/e9ddb7a51272/
Log: (arigo, mfoord, fijal) Kill unnecessary copying
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
@@ -22,7 +22,7 @@
from pypy.objspace.std.bytearraytype import bytearray_typedef as typedef
def __init__(w_self, data):
- w_self.data = list(data)
+ w_self.data = data
def __repr__(w_self):
""" representation for debugging purposes """
More information about the Pypy-commit
mailing list