Issue 33461: json.loads(encoding=) does not emit deprecation warning. (original) (raw)

Issue33461

Created on 2018-05-11 02:31 by mbussonn, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 6762 merged mbussonn,2018-05-11 02:44
PR 6784 closed mbussonn,2018-05-13 21:22
Messages (5)
msg316384 - (view) Author: Matthias Bussonnier (mbussonn) * Date: 2018-05-11 02:31
The `encoding` keyword of json.loads is ignored and deprecated. AFAICT this is since Python 3.1. Passing a value for encoding does not emit a deprecation warning.
msg316393 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2018-05-11 11:42
I'm wondering if it can be removed at all. Maybe it was left in due to oversight.
msg316479 - (view) Author: Matthias Bussonnier (mbussonn) * Date: 2018-05-13 21:25
I've opened https://github.com/python/cpython/pull/6784 as an alternative that removes it. I was worried to remove it so close to 3.7.
msg339600 - (view) Author: Inada Naoki (methane) * (Python committer) Date: 2019-04-08 08:28
Since we didn't raise DeprecationWarning, I think at least one version with DeprecationWarning is preferable.
msg339710 - (view) Author: Inada Naoki (methane) * (Python committer) Date: 2019-04-09 07:17
New changeset a8abe097c1165db25b429ca02a65c4f8acbc062b by Inada Naoki (Matthias Bussonnier) in branch 'master': bpo-33461: emit DeprecationWarning when json.loads(encoding=...) is used (GH-6762) https://github.com/python/cpython/commit/a8abe097c1165db25b429ca02a65c4f8acbc062b
History
Date User Action Args
2022-04-11 14:59:00 admin set github: 77642
2019-04-09 07:17:58 methane set status: open -> closedresolution: fixedstage: patch review -> resolved
2019-04-09 07:17:27 methane set messages: +
2019-04-08 08:28:49 methane set nosy: + methanemessages: + versions: + Python 3.8
2018-05-13 21:25:15 mbussonn set messages: +
2018-05-13 21:22:34 mbussonn set pull_requests: + <pull%5Frequest6471>
2018-05-11 11:42:18 serhiy.storchaka set nosy: + bob.ippolito, pitrou, serhiy.storchaka, rhettinger, ezio.melottimessages: +
2018-05-11 02:44:21 mbussonn set keywords: + patchstage: patch reviewpull_requests: + <pull%5Frequest6449>
2018-05-11 02:31:13 mbussonn create