commit | c8de4585a6e52e1186828dd929671d3a6c36db95 | [log] [tgz] |
---|---|---|
author | Walter Dörwald <walter@livinglogic.de> | Wed Dec 03 20:26:05 2003 +0000 |
committer | Walter Dörwald <walter@livinglogic.de> | Wed Dec 03 20:26:05 2003 +0000 |
tree | b3e5ad74c31c3bb634828a121f7b7d9919fabdb3 | |
parent | 7a7ede54d4311d3bcb5000aeedeab8cc80391c70 [diff] [blame] |
Add parameters indent, width and depth to pprint.pprint() and pprint.pformat() and pass them along to the PrettyPrinter constructor.
diff --git a/Misc/NEWS b/Misc/NEWS index c21a6c6..78118cf 100644 --- a/Misc/NEWS +++ b/Misc/NEWS
@@ -170,6 +170,9 @@ Library ------- +- pprint.pprint() and pprint.pformat() now have additional parameters + indent, width and depth. + - Patch #750542: pprint now will pretty print subclasses of list, tuple and dict too, as long as they don't overwrite __repr__().