Raymond Hettinger <[email protected]> added the comment:
If this were possible, it would be really nice to have.
FWIW, the rich¹ project was able to pull this off in regular text terminal
window:
$ python3.10 -m pip install rich
$ python3.10 -m rich.pretty
{
│ 'foo': [1, 'Hello World!', 100.123, 323.232, 432324.0, {(1, 2, 3, 4), 5, 6,
7, 8}, ...],
│ 'bar': frozenset({1, 2, 3}),
│ 'defaultdict': defaultdict(<class 'list'>, {'crumble': ['apple', 'rhubarb',
'butter', 'sugar', 'flour']}),
│ 'counter': Counter({'apple': 1, 'orange': 1, 'pear': 1, 'kumquat': 2,
'duriandurianduriandu'+580: 1}),
│ 'atomic': (False, True, None),
│ 'Broken': <repr-error 'division by zero'>
}
¹ https://rich.readthedocs.io/en/stable/index.html
----------
nosy: +rhettinger
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue46666>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com