[pypy-svn] r71967 - pypy/branch/micronumpy/pypy/module/micronumpy

fijal at codespeak.net fijal at codespeak.net
Tue Mar 9 17:03:52 CET 2010


Author: fijal
Date: Tue Mar  9 17:03:51 2010
New Revision: 71967

Modified:
   pypy/branch/micronumpy/pypy/module/micronumpy/sdarray.py
Log:
simplify sdarray


Modified: pypy/branch/micronumpy/pypy/module/micronumpy/sdarray.py
==============================================================================
--- pypy/branch/micronumpy/pypy/module/micronumpy/sdarray.py	(original)
+++ pypy/branch/micronumpy/pypy/module/micronumpy/sdarray.py	Tue Mar  9 17:03:51 2010
@@ -183,8 +183,7 @@
 
         def descr_setitem(self, w_index, w_value):
             space = self.space
-            if space.is_true(space.isinstance(w_index, space.w_slice)):
-                assert isinstance(w_index, W_SliceObject)
+            if isinstance(w_index, W_SliceObject):
                 start, stop, step, slen = w_index.indices4(space, self.len())
                 try:
                     space.iter(w_value)



More information about the Pypy-commit mailing list