mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Issue #18726: All optional parameters of the dump(), dumps(),
load() and loads() functions and JSONEncoder and JSONDecoder class constructors in the json module are now keyword-only.
This commit is contained in:
parent
4335437506
commit
aacd53f6cb
6 changed files with 36 additions and 12 deletions
|
|
@ -101,7 +101,7 @@ class JSONEncoder(object):
|
|||
"""
|
||||
item_separator = ', '
|
||||
key_separator = ': '
|
||||
def __init__(self, skipkeys=False, ensure_ascii=True,
|
||||
def __init__(self, *, skipkeys=False, ensure_ascii=True,
|
||||
check_circular=True, allow_nan=True, sort_keys=False,
|
||||
indent=None, separators=None, default=None):
|
||||
"""Constructor for JSONEncoder, with sensible defaults.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue