This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: json.loads(u'3.14') fails unexpectedly (minor scanner bug)
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.1
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: bob.ippolito Nosy List: bob.ippolito, ezio.melotti, joel.pearson
Priority: high Keywords: easy

Created on 2009-03-28 05:53 by bob.ippolito, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg84299 - (view) Author: Bob Ippolito (bob.ippolito) * (Python committer) Date: 2009-03-28 05:53
http://code.google.com/p/simplejson/issues/detail?id=43

Need a <= where there's a < in the unicode float scanner. problem only 
exists when decoding a unicode float that is not in any sort of container 
(e.g. array or object).
msg84440 - (view) Author: Bob Ippolito (bob.ippolito) * (Python committer) Date: 2009-03-29 22:35
trunk fix for 2.7 is in r70702 -- unsure about how to port this to 3.1
msg99808 - (view) Author: Joel Pearson (joel.pearson) Date: 2010-02-22 18:39
The fix for this bug was included in r72194.

I verified that the fix is included in trunk, the release31-maint branch, and the py3k branch. I also verified that json.loads(u'3.14') works in 2.7a3, and that json.loads('3.14') works in 3.1.1, so I believe that this bug can be closed.
msg99830 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2010-02-22 20:55
I tried json.loads(u'3.14') on trunk and release26-maint and it worked fine, on py3k and release31-maint json.loads('3.14') works too, so I'm closing this issue.
History
Date User Action Args
2022-04-11 14:56:47adminsetgithub: 49834
2010-02-22 20:55:39ezio.melottisetstatus: open -> closed

nosy: + ezio.melotti
messages: + msg99830

resolution: accepted -> out of date
stage: needs patch -> resolved
2010-02-22 18:39:09joel.pearsonsetnosy: + joel.pearson
messages: + msg99808
2009-04-22 12:46:23ajaksu2setpriority: high
versions: - Python 2.7
2009-03-29 22:35:23bob.ippolitosetmessages: + msg84440
2009-03-29 21:46:40bob.ippolitosetresolution: accepted
2009-03-28 05:54:01bob.ippolitosetcomponents: + Library (Lib)
2009-03-28 05:53:33bob.ippolitocreate