Lines Matching refs:object
55 def pprint(object, stream=None, indent=1, width=80, depth=None): argument
59 printer.pprint(object)
61 def pformat(object, indent=1, width=80, depth=None): argument
63 return PrettyPrinter(indent=indent, width=width, depth=depth).pformat(object)
65 def saferepr(object): argument
67 return _safe_repr(object, {}, None, 0)[0]
69 def isreadable(object): argument
71 return _safe_repr(object, {}, None, 0)[1]
73 def isrecursive(object): argument
75 return _safe_repr(object, {}, None, 0)[2]
116 def pprint(self, object): argument
117 self._format(object, self._stream, 0, 0, {}, 0)
120 def pformat(self, object): argument
122 self._format(object, sio, 0, 0, {}, 0)
125 def isrecursive(self, object): argument
126 return self.format(object, {}, 0, 0)[2]
128 def isreadable(self, object): argument
129 s, readable, recursive = self.format(object, {}, 0, 0)
132 def _format(self, object, stream, indent, allowance, context, level): argument
134 objid = _id(object)
136 stream.write(_recursion(object))
140 rep = self._repr(object, context, level - 1)
141 typ = _type(object)
154 length = _len(object)
158 items = _sorted(object.items())
184 length = _len(object)
199 object = _sorted(object)
205 self._format(object[0], stream, indent, allowance + 1,
208 for ent in object[1:]:
224 def _repr(self, object, context, level): argument
225 repr, readable, recursive = self.format(object, context.copy(),
233 def format(self, object, context, maxlevels, level): argument
238 return _safe_repr(object, context, maxlevels, level)
243 def _safe_repr(object, context, maxlevels, level): argument
244 typ = _type(object)
247 return repr(object), True, False
248 if "'" in object and '"' not in object:
257 for char in object:
266 if not object:
268 objid = _id(object)
272 return _recursion(object), False, True
280 for k, v in _sorted(object.items()):
293 if not object:
296 elif _len(object) == 1:
299 if not object:
302 objid = _id(object)
306 return _recursion(object), False, True
313 for o in object:
323 rep = repr(object)
327 def _recursion(object): argument
329 % (_type(object).__name__, _id(object)))
332 def _perfcheck(object=None): argument
334 if object is None:
335 object = [("string", (1, 2), [3, 4], {5: 6, 7: 8})] * 100000
338 _safe_repr(object, {}, None, 0)
340 p.pformat(object)