Use width=1
or width=-1
:
In [33]: pprint.pprint(a, width=1)
{'first': 123,
'second': 456,
'third': {1: 1,
2: 2}}
More Related Contents:
- Creating multiple python dictionaries from a file
- Remove string in python dictionary value
- Converting dictionary to JSON
- How do you create nested dict in Python?
- python filter list of dictionaries based on key value
- How to pass dictionary items as function arguments in python? [duplicate]
- How to split dictionary into multiple dictionaries fast
- How to create a Python dictionary with double quotes as default quote format?
- Why does updating one dictionary object affect other?
- filter items in a python dictionary where keys contain a specific string
- How to completely traverse a complex dictionary of unknown depth?
- Disabling sorting mechanism in pprint output
- Why does dict(k=4, z=2).update(dict(l=1)) return None in Python? [duplicate]
- python building coder for ceasar cipher
- Searching for IP addresses in a file
- Swapping variable places inside if throws an error
- Export a list of stock prices to excel
- How to make a dict from n’th indices of tuples in list
- Text parsing and retrieval
- How to index into a dictionary?
- Sorting a dictionary by value then key
- “OSError: [Errno 1] Operation not permitted” when installing Scrapy in OSX 10.11 (El Capitan) (System Integrity Protection)
- In Python, why is list[] automatically global?
- Unable to install Python packages using pip in Ubuntu Linux: InsecurePlatformWarning, SSLError, tlsv1 alert protocol version
- Collections.defaultdict difference with normal dict
- Right way to initialize an OrderedDict using its constructor such that it retains order of initial data?
- Spell Checker for Python
- How to insert key-value pair into dictionary at a specified position?
- Unknown error: Chrome failed to start: exited abnormally
- Searching in Google with Python