Skip to content

Commit 107949c

Browse files
authored
bpo-30621: Update Input Output Tutorial Example(GH-2074) (GH-2120)
import json before using json module (cherry picked from commit 1dbce04)
1 parent 51658f7 commit 107949c

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

393+
>>> import json
393394
>>> json.dumps([1, 'simple', 'list'])
394395
'[1, "simple", "list"]'
395396

0 commit comments

Comments
 (0)