[pypy-svn] r75838 - pypy/branch/interplevel-array/pypy/module/array
hakanardo at codespeak.net
hakanardo at codespeak.net
Mon Jul 5 18:05:14 CEST 2010
Author: hakanardo
Date: Mon Jul 5 18:05:12 2010
New Revision: 75838
Modified:
pypy/branch/interplevel-array/pypy/module/array/interp_array.py
Log:
less mallocing
Modified: pypy/branch/interplevel-array/pypy/module/array/interp_array.py
==============================================================================
--- pypy/branch/interplevel-array/pypy/module/array/interp_array.py (original)
+++ pypy/branch/interplevel-array/pypy/module/array/interp_array.py Mon Jul 5 18:05:12 2010
@@ -218,7 +218,7 @@
if self.typecode != 'u':
msg = "fromunicode() may only be called on type 'u' arrays"
raise OperationError(self.space.w_ValueError, self.space.wrap(msg))
- self.descr_extend(self.space.wrap(s))
+ self.descr_fromlist(self.space.wrap(s))
descr_fromunicode.unwrap_spec = ['self', unicode]
@@ -252,7 +252,7 @@
elif space.is_w(space.type(w_initializer), space.w_list):
a.descr_fromlist(w_initializer)
elif not space.is_w(w_initializer, space.w_None):
- a.descr_extend(w_initializer) # FIXME: use fromlist, fromstring, ...
+ a.descr_extend(w_initializer)
return a
array.unwrap_spec = (ObjSpace, str, W_Root)
More information about the Pypy-commit
mailing list