Message412707
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 |
|
Date |
User |
Action |
Args |
2022-02-07 03:34:28 | rhettinger | set | recipients:
+ rhettinger, terry.reedy, primexx |
2022-02-07 03:34:28 | rhettinger | set | messageid: <1644204868.57.0.512128824445.issue46666@roundup.psfhosted.org> |
2022-02-07 03:34:28 | rhettinger | link | issue46666 messages |
2022-02-07 03:34:28 | rhettinger | create | |
|