From 0c85c0d44a3622218011761ee4025425ba7561d1 Mon Sep 17 00:00:00 2001 From: Masaki Suketa Date: Sat, 10 Jun 2017 17:10:30 +0900 Subject: [PATCH] bpo-30621: import json before using json module In python tutorial Input and Output, use json module without import json. --- Doc/tutorial/inputoutput.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index bad0302b037861..92f439c31c920b 100644 --- a/Doc/tutorial/inputoutput.rst +++ b/Doc/tutorial/inputoutput.rst @@ -412,6 +412,7 @@ sent over a network connection to some distant machine. If you have an object ``x``, you can view its JSON string representation with a simple line of code:: + >>> import json >>> json.dumps([1, 'simple', 'list']) '[1, "simple", "list"]'