def _uses_tuple_iter(self, w_obj): from pypy.objspace.descroperation import tuple_iter return self.lookup(w_obj, '__iter__') is tuple_iter(self)