Skip to content

Commit 47c9dec

Browse files
authored
bpo-30621: Update Input Output Tutorial Example(GH-2074) (GH-2118)
import json before using json module (cherry picked from commit 1dbce04)
1 parent 2737291 commit 47c9dec

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
@@ -412,6 +412,7 @@ sent over a network connection to some distant machine.
412412
If you have an object ``x``, you can view its JSON string representation with a
413413
simple line of code::
414414

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

0 commit comments

Comments
 (0)