mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +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`
|
||||
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
|
||||
reference check for container types will be skipped and a circular reference
|
||||
will result in an :exc:`OverflowError` (or worse).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue