Home | History | Annotate | Download | only in Lib

Lines Matching defs:repr

1 """Redo the builtin repr() (representation) but with limits on most sizes."""

3 __all__ = ["Repr","repr"]
8 class Repr:
23 def repr(self, x):
34 s = __builtin__.repr(x)
92 s = __builtin__.repr(x[:self.maxstring])
96 s = __builtin__.repr(x[:i] + x[len(x)-j:])
101 s = __builtin__.repr(x) # XXX Hope this isn't too slow...
110 s = __builtin__.repr(x)
131 aRepr = Repr()
132 repr = aRepr.repr