예제 #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))
예제 #2
0
파일: objspace.py 프로젝트: mozillazg/pypy
    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)