Ammar Askar <[email protected]> added the comment:
Do you mean to say we should or shouldn't be raising an error? With Inada-san's
change you get this:
>>> json.loads("true", encoding='utf8')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\ammar\workspace\cpython\lib\json\__init__.py", line 359, in
loads
return cls(**kw).decode(s)
TypeError: __init__() got an unexpected keyword argument 'encoding'
----------
nosy: +ammar2
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue39377>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com