From f46ab8fab1e637bdbab8aa89de58f70a0fd31322 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Mon, 9 Sep 2019 03:33:20 +0200 Subject: [PATCH] Print --- README.md | 3 ++- index.html | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ec961bd..3337973 100644 --- a/README.md +++ b/README.md @@ -1444,8 +1444,9 @@ print(, ..., sep=' ', end='\n', file=sys.stdout, flush=False) ### Pretty Print ```python from pprint import pprint -pprint(, stream=None, width=80) +pprint(, width=80, depth=None) ``` +* **Levels deeper than 'depth' will be replaced by '...'.** Input diff --git a/index.html b/index.html index 387f016..44940bc 100644 --- a/index.html +++ b/index.html @@ -1339,9 +1339,12 @@ LogicOp = Enum('LogicOp', {'flush=True' to forcibly flush the stream.

Pretty Print

from pprint import pprint
-pprint(<collection>, stream=None, width=80)
+pprint(<collection>, width=80, depth=None)
 
+
    +
  • Levels deeper than 'depth' will be replaced by '…'.
  • +

#Input

  • Reads a line from user input or pipe if present.
  • Trailing newline gets stripped.