예제 #1
0
def _repr(o):
    if isinstance(o, Proxy):
        return format_ty(o.typeof)
    else:
        return repr(o)
예제 #2
0
파일: proxy.py 프로젝트: c-mori/blaze-core
def _repr(o):
    if isinstance(o, Proxy):
        return format_ty(o.typeof)
    else:
        return repr(o)
예제 #3
0
 def __repr__(self):
     ty = _getattr(self, "_ty")
     if len(ty) > 1:
         return '<Proxy %s>' % format_ty(self._ty)
     else:
         return '<Proxy %s>' % format_ty(self._ty)
예제 #4
0
파일: proxy.py 프로젝트: c-mori/blaze-core
 def __repr__(self):
     ty = _getattr(self, "_ty")
     if len(ty) > 1:
         return "<Proxy %s>" % format_ty(self._ty)
     else:
         return "<Proxy %s>" % format_ty(self._ty)