Mercurial > cpython-lru_cache-weakref
diff Lib/json/encoder.py @ 63575:4874efd1f657
#9087: update json docstrings -- unicode and long do not exist anymore.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Mon, 02 Aug 2010 20:16:18 +0000 |
| parents | aa19a7cc1bf3 |
| children | 4a1048257995 94c5ad981c1b |
line wrap: on
line diff
--- a/Lib/json/encoder.py Mon Aug 02 20:05:19 2010 +0000 +++ b/Lib/json/encoder.py Mon Aug 02 20:16:18 2010 +0000 @@ -77,9 +77,9 @@ +-------------------+---------------+ | list, tuple | array | +-------------------+---------------+ - | str, unicode | string | + | str | string | +-------------------+---------------+ - | int, long, float | number | + | int, float | number | +-------------------+---------------+ | True | true | +-------------------+---------------+ @@ -102,12 +102,12 @@ """Constructor for JSONEncoder, with sensible defaults. If skipkeys is false, then it is a TypeError to attempt - encoding of keys that are not str, int, long, float or None. If + encoding of keys that are not str, int, float or None. If skipkeys is True, such items are simply skipped. If ensure_ascii is true, the output is guaranteed to be str - objects with all incoming unicode characters escaped. If - ensure_ascii is false, the output will be unicode object. + objects with all incoming non-ASCII characters escaped. If + ensure_ascii is false, the output can contain non-ASCII characters. If check_circular is true, then lists, dicts, and custom encoded objects will be checked for circular references during encoding to
