mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Document json.dump ensure_ascii parameter (#13770)
This commit is contained in:
parent
73cec21af2
commit
6f7aa00c1e
1 changed files with 4 additions and 0 deletions
|
@ -125,6 +125,10 @@ Basic Usage
|
||||||
:class:`bytes` objects. Therefore, ``fp.write()`` must support :class:`str`
|
:class:`bytes` objects. Therefore, ``fp.write()`` must support :class:`str`
|
||||||
input.
|
input.
|
||||||
|
|
||||||
|
If *ensure_ascii* is ``True`` (the default), the output is guaranteed to
|
||||||
|
have all incoming non-ASCII characters escaped. If *ensure_ascii* is
|
||||||
|
``False``, these characters will be output as-is.
|
||||||
|
|
||||||
If *check_circular* is ``False`` (default: ``True``), then the circular
|
If *check_circular* is ``False`` (default: ``True``), then the circular
|
||||||
reference check for container types will be skipped and a circular reference
|
reference check for container types will be skipped and a circular reference
|
||||||
will result in an :exc:`OverflowError` (or worse).
|
will result in an :exc:`OverflowError` (or worse).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue