Issue 11982: json.loads() returns str instead of unicode for empty strings (original) (raw)

Issue11982

Created on 2011-05-03 01:35 by ceronman, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue11982.diff ezio.melotti,2011-05-03 19:18 Patch against 2.7. review
Messages (5)
msg135014 - (view) Author: Manuel Cerón (ceronman) Date: 2011-05-03 01:35
Python 2.7.1: >>> import json >>> json.loads('"hello"') u'hello' >>> .json.loads('""') '' Related: issue 10038
msg135061 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2011-05-03 19:18
Attached patch should fix the problem.
msg135120 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-05-04 11:41
New changeset 9d5a50e5d8a2 by Ezio Melotti in branch '2.7': #11982: fix json.loads('""') to return u'' rather than ''. http://hg.python.org/cpython/rev/9d5a50e5d8a2
msg135121 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2011-05-04 11:46
Fixed, thanks for the report!
msg135127 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-05-04 12:28
New changeset d3bd384df8ca by Ezio Melotti in branch '2.7': #11982: remove now unused function. http://hg.python.org/cpython/rev/d3bd384df8ca
History
Date User Action Args
2022-04-11 14:57:16 admin set github: 56191
2011-05-04 12:28:45 python-dev set messages: +
2011-05-04 11:46:31 ezio.melotti set status: open -> closedresolution: accepted -> fixedmessages: + stage: resolved
2011-05-04 11:41:40 python-dev set nosy: + python-devmessages: +
2011-05-03 19:50:20 rhettinger set resolution: accepted
2011-05-03 19🔞10 ezio.melotti set files: + issue11982.diffkeywords: + patchmessages: +
2011-05-03 18:22:45 rhettinger set priority: normal -> high
2011-05-03 17:54:38 ezio.melotti set assignee: ezio.melottinosy: + ezio.melotti
2011-05-03 01:35:29 ceronman create