Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(46)

#19871: json module won't parse a float that starts with a decimal point

Can't Edit
Can't Publish+Mail
Start Review
Created:
6 years, 1 month ago by pico-pythonbt-sfmsw0sx
Modified:
6 years ago
Reviewers:
ezio.melotti
CC:
tim.peters, holdenweb, terry.reedy, jcea, mark.dickinson, AntoinePitrou, nedbat, ezio.melotti, cvrebert, docs_python.org, storchaka, vajrasky, pico-pythonbt-sfmsw0sx_picomancer.com
Visibility:
Public.

Patch Set 1 #

Patch Set 2 #

Total comments: 1

Patch Set 3 #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
Doc/library/json.rst View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
Lib/test/test_json/test_fail.py View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 1
ezio.melotti
6 years ago #1
http://bugs.python.org/review/19871/diff/10344/Doc/library/json.rst
File Doc/library/json.rst (right):

http://bugs.python.org/review/19871/diff/10344/Doc/library/json.rst#newcode232
Doc/library/json.rst:232: string is tokenized.
I don't find this too clear.  I think it would be better to just state what
happens when the json you are loading contains something like '.5' (is it
recognized and passed to float()? is it not recognized and treated as a string
or something else?)
Sign in to reply to this message.

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+