Message159601
Hi Jakob,
parse_constant has been changed as of d95e5add3ca4 to be called only on "-Infinity, Infinity, NaN":
``parse_constant``, if specified, will be called with one of the
following strings: -Infinity, Infinity, NaN.
This can be used to raise an exception if invalid JSON numbers
are encountered.
And indeed, if you change your example to Infinity, it gets called.
That said, neither the 2.7 nor the dev docs reflect that. So it seems like a documentation bug to me. |
|
Date |
User |
Action |
Args |
2012-04-29 11:25:05 | hynek | set | recipients:
+ hynek, georg.brandl, ezio.melotti, eric.araujo, docs@python, serhiy.storchaka, Jakob.Simon-Gaarde |
2012-04-29 11:25:05 | hynek | set | messageid: <1335698705.15.0.779994702943.issue14692@psf.upfronthosting.co.za> |
2012-04-29 11:25:04 | hynek | link | issue14692 messages |
2012-04-29 11:25:04 | hynek | create | |
|