mirror of
https://github.com/python/cpython.git
synced 2025-09-30 12:21:51 +00:00
[3.6] Make json.dumps()
example to be PEP-8 compliant. (GH-3472) (GH-3473)
(cherry picked from commit a7fbad96c8
)
This commit is contained in:
parent
16f16dbd0e
commit
fe9bebf960
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ Encoding basic Python object hierarchies::
|
||||||
Compact encoding::
|
Compact encoding::
|
||||||
|
|
||||||
>>> import json
|
>>> import json
|
||||||
>>> json.dumps([1,2,3,{'4': 5, '6': 7}], separators=(',', ':'))
|
>>> json.dumps([1, 2, 3, {'4': 5, '6': 7}], separators=(',', ':'))
|
||||||
'[1,2,3,{"4":5,"6":7}]'
|
'[1,2,3,{"4":5,"6":7}]'
|
||||||
|
|
||||||
Pretty printing::
|
Pretty printing::
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue