Commits

mattip committed d9f8f5c

display nditer missing functionality

  • Participants
  • Parent commits 7532271

Comments (0)

Files changed (2)

File pypy/module/micronumpy/tool/numready/main.py

         return len(self._items)
 
 class Item(object):
-    def __init__(self, name, kind, subitems=None):
+    def __init__(self, name, kind, subitems=[]):
         self.name = name
         self.kind = kind
         self.subitems = subitems
     items = SearchableSet()
     for line in lines:
         kind, name = line.split(" : ", 1)
-        subitems = None
+        subitems = []
         if kind == KINDS["TYPE"] and name in SPECIAL_NAMES and attr is None:
             subitems = find_numpy_items(python, modname, name)
         items.add(Item(name, kind, subitems))
                 l[i].append(lst[k * lgt + i])
     return l
 
-SPECIAL_NAMES = ["ndarray", "dtype", "generic", "flatiter", "ufunc"]
+SPECIAL_NAMES = ["ndarray", "dtype", "generic", "flatiter", "ufunc",
+                 "nditer"]
 
 def main(argv):
     cpy_items = find_numpy_items("/usr/bin/python")

File pypy/module/micronumpy/tool/numready/search.py

         print kind, ":", name
 
 if __name__ == "__main__":
-    main(sys.argv)
+    main(sys.argv)