Permalink
Browse files

Make typesets iterable

  • Loading branch information...
1 parent a8f2d88 commit 6f90a2faf307d8f682a934907fdf10cf67774d04 @markflorisson markflorisson committed Apr 5, 2013
Showing with 4 additions and 0 deletions.
  1. +1 −0 numba/exttypes/tests/test_vtables.py
  2. +3 −0 numba/typesystem/typeset.py
@@ -0,0 +1 @@
+__author__ = 'mark'
@@ -115,6 +115,9 @@ def find_match(self, context, argtypes):
return None
+ def __iter__(self):
+ return iter(self.types)
+
def __repr__(self):
return "typeset(%s, ...)" % (self.first_type,)

0 comments on commit 6f90a2f

Please sign in to comment.