Commits

Brian Kearns committed ff15fb0

small cleanups

Comments (0)

Files changed (2)

pypy/module/micronumpy/interp_numarray.py

                 self._prepare_array_index(space, w_index)
         if iter_shape is None:
             # w_index is a list of slices
-            w_value = convert_to_array(space, w_value)
             chunks = self.implementation._prepare_slice_args(space, w_index)
             view = chunks.apply(space, self)
-            view.implementation.setslice(space, w_value)
+            view.implementation.setslice(space, val_arr)
             return
         loop.setitem_array_int(space, self, iter_shape, indexes, val_arr,
                                prefix)

pypy/module/micronumpy/types.py

     specialize.argtype(1)(func)
     @functools.wraps(func)
     def dispatcher(self, v):
-        from pypy.module.micronumpy.interp_boxes import W_GenericBox
-        assert isinstance(v, W_GenericBox)
         return self.box_component(
             func(
                 self,
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.