Message205114
In context, the doc is correct:
"""
parse_float, if specified, will be called with the string of every JSON float to be decoded. By default, this is equivalent to float(num_str).
"""
IIUC, parse_float only comes into play once the JSON source has already been tokenized, and the tokenization stage has already rejected things like '.5' by that point. (The point of parse_float is that you can choose to turn numeric strings into decimal.Decimal instances instead of floats if you so wish.)
I agree it could use clarification. |
|
Date |
User |
Action |
Args |
2013-12-03 12:32:59 | mark.dickinson | set | recipients:
+ mark.dickinson, pitrou, docs@python, serhiy.storchaka, picomancer |
2013-12-03 12:32:59 | mark.dickinson | set | messageid: <1386073979.52.0.652186486538.issue19871@psf.upfronthosting.co.za> |
2013-12-03 12:32:59 | mark.dickinson | link | issue19871 messages |
2013-12-03 12:32:59 | mark.dickinson | create | |
|