Skip to content

Commit 7563b05

Browse files
authored
bpo-30621: Update Input Output Tutorial Example(GH-2074) (GH-2119)
import json before using json module (cherry picked from commit 1dbce04)
1 parent 80bdbf6 commit 7563b05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Doc/tutorial/inputoutput.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ sent over a network connection to some distant machine.
411411
If you have an object ``x``, you can view its JSON string representation with a
412412
simple line of code::
413413

414+
>>> import json
414415
>>> json.dumps([1, 'simple', 'list'])
415416
'[1, "simple", "list"]'
416417

0 commit comments

Comments
 (0)