You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to print a simple dict with long str values without line wrapping.
What I Did
Expected:
{
'foo': 'a very long bar a very long bar a very long bar a very long bar a very long bar a very long bar ',
# 'baz': 'if there were other keys, they would be here...',
}
The text was updated successfully, but these errors were encountered:
Noticed this as well, looking at the pprint() definition, this might be working a intended:
:param indent: number of spaces to add for each level of nesting.
:param stream: the output stream, defaults to ``sys.stdout``
:param width: a soft maximum allowed number of columns in the output,
which the layout algorithm attempts to stay under.
:param depth: maximum depth to print nested structures
:param ribbon_width: a soft maximum allowed number of columns in the output,
after indenting the line
:param max_seq_len: a maximum sequence length that applies to subclasses of
lists, sets, frozensets, tuples and dicts. A trailing
comment that indicates the number of truncated elements.
Setting max_seq_len to ``None`` disables truncation.
:param sort_dict_keys: a ``bool`` value indicating if dict keys should be
sorted in the output. Defaults to ``False``, in
which case the default order is used, which is the
insertion order in CPython 3.6+.
Description
I want to print a simple dict with long str values without line wrapping.
What I Did
Expected:
The text was updated successfully, but these errors were encountered: