Questions tagged [pprint]

Pprint is a Python module used for “pretty-printing” arbitrary data structures.

The pprint module provides a capability to “pretty-print” arbitrary Python data structures in a form which can be used as input to the interpreter.

136 questions
-4
votes
1 answer

write() file by inserting dict in specific key order and format

I need to create a file, and insert a dictionary in it. The dictionary has to: be in a format like pprint(). have keys ordered in a specific way. I know i can simply use with open() and insert everything in a specific order with some custom-made…
user
  • 5,370
  • 8
  • 47
  • 75
1 2 3
9
10