(obj)
| 16 | |
| 17 | |
| 18 | def str_fun(obj): |
| 19 | if isinstance(obj, dict): |
| 20 | if "__memory_locals__" in obj: |
| 21 | return "(-locals-)" |
| 22 | if "self" in obj and isinstance(obj["self"], refbrowser.InteractiveBrowser): |
| 23 | return "(-browser-)" |
| 24 | return ( |
| 25 | str(id(obj)) |
| 26 | + ": " |
| 27 | + str(obj)[:100].replace("\r\n", "\\r\\n").replace("\n", "\\n") |
| 28 | ) |
| 29 | |
| 30 | |
| 31 | def request(ctx, flow): |