我们从Python开源项目中,提取了以下50个代码示例,用于说明如何使用werkzeug.debug.repr.debug_repr()。
def displayhook(obj): try: stream = _local.stream except AttributeError: return _displayhook(obj) # stream._write bypasses escaping as debug_repr is # already generating HTML for us. if obj is not None: _local._current_ipy.locals['_'] = obj stream._write(debug_repr(obj))