MCPcopy
hub / github.com/pallets/werkzeug / repr

Method repr

src/werkzeug/debug/repr.py:227–240  ·  view source on GitHub ↗
(self, obj: object)

Source from the content-addressed store, hash-verified

225 )
226
227 def repr(self, obj: object) -> str:
228 recursive = False
229 for item in self._stack:
230 if item is obj:
231 recursive = True
232 break
233 self._stack.append(obj)
234 try:
235 try:
236 return self.dispatch_repr(obj, recursive)
237 except Exception:
238 return self.fallback_repr()
239 finally:
240 self._stack.pop()
241
242 def dump_object(self, obj: object) -> str:
243 repr = None

Callers 5

dict_reprMethod · 0.95
dump_objectMethod · 0.95
dump_localsMethod · 0.95
debug_reprFunction · 0.80
proxyFunction · 0.80

Calls 4

dispatch_reprMethod · 0.95
fallback_reprMethod · 0.95
appendMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected