Author hynek
Recipients Jakob.Simon-Gaarde, docs@python, eric.araujo, ezio.melotti, georg.brandl, hynek, serhiy.storchaka
Date 2012-04-29.11:25:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335698705.15.0.779994702943.issue14692@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-04-29 11:25:05hyneksetrecipients: + hynek, georg.brandl, ezio.melotti, eric.araujo, docs@python, serhiy.storchaka, Jakob.Simon-Gaarde
2012-04-29 11:25:05hyneksetmessageid: <1335698705.15.0.779994702943.issue14692@psf.upfronthosting.co.za>
2012-04-29 11:25:04hyneklinkissue14692 messages
2012-04-29 11:25:04hynekcreate