Example #1
0
 def _uni_uses_no_iter(self, w_obj):
     from pypy.objspace.descroperation import unicode_getitem
     return (self.lookup(w_obj, '__iter__') is None
             and self.lookup(w_obj, '__getitem__') is unicode_getitem(self))
Example #2
0
    def _uni_uses_no_iter(self, w_obj):
        from pypy.objspace.descroperation import unicode_getitem

        return self.lookup(w_obj, "__iter__") is None and self.lookup(w_obj, "__getitem__") is unicode_getitem(self)