diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-24 09:04:36 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-24 09:04:36 (GMT) |
commit | f47036c1309536c048890c265605b06daf7bdc9c (patch) | |
tree | e6df0e6a342b66183d5924c97667c14c42cb2ff7 /Doc/whatsnew/2.6.rst | |
parent | 55c6cc408c56f586c4826c1d9639a5f4635c021c (diff) | |
download | cpython-f47036c1309536c048890c265605b06daf7bdc9c.zip cpython-f47036c1309536c048890c265605b06daf7bdc9c.tar.gz cpython-f47036c1309536c048890c265605b06daf7bdc9c.tar.bz2 |
Removed spaces before colons and semicolons.
Diffstat (limited to 'Doc/whatsnew/2.6.rst')
-rw-r--r-- | Doc/whatsnew/2.6.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst index bdd7ff7..3ae6c77 100644 --- a/Doc/whatsnew/2.6.rst +++ b/Doc/whatsnew/2.6.rst @@ -1891,7 +1891,7 @@ changes, or look through the Subversion logs for all the details. >>> dq=deque(maxlen=3) >>> dq deque([], maxlen=3) - >>> dq.append(1) ; dq.append(2) ; dq.append(3) + >>> dq.append(1); dq.append(2); dq.append(3) >>> dq deque([1, 2, 3], maxlen=3) >>> dq.append(4) @@ -2783,12 +2783,12 @@ http://www.json.org. types. The following example encodes and decodes a dictionary:: >>> import json - >>> data = {"spam" : "foo", "parrot" : 42} + >>> data = {"spam": "foo", "parrot": 42} >>> in_json = json.dumps(data) # Encode the data >>> in_json '{"parrot": 42, "spam": "foo"}' >>> json.loads(in_json) # Decode into a Python object - {"spam" : "foo", "parrot" : 42} + {"spam": "foo", "parrot": 42} It's also possible to write your own decoders and encoders to support more types. Pretty-printing of the JSON strings is also supported. |