This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients primexx, rhettinger, terry.reedy
Date 2022-02-07.03:34:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1644204868.57.0.512128824445.issue46666@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2022-02-07 03:34:28rhettingersetrecipients: + rhettinger, terry.reedy, primexx
2022-02-07 03:34:28rhettingersetmessageid: <1644204868.57.0.512128824445.issue46666@roundup.psfhosted.org>
2022-02-07 03:34:28rhettingerlinkissue46666 messages
2022-02-07 03:34:28rhettingercreate