[issue14692] json.joads parse_constant callback not working anymore

2012-04-30 Thread Jakob Simon-Gaarde
Jakob Simon-Gaarde added the comment: Ok, I accept that at some point it was decided to take away the call to parse_constant hook on "true" and "false" values. But how does it help me to know this, I still need to react on these values? It seems a little overkill to parse through all parsed v

[issue14692] json.joads parse_constant callback not working anymore

2012-04-29 Thread Ezio Melotti
Ezio Melotti added the comment: The original changeset is at [0], and the commit message just says "even more decoder optimizations". The official website[1] and the RFC[2] don't list any constant, so I guess the definition of what a constant is is not well defined. [0]: http://code.google.c

[issue14692] json.joads parse_constant callback not working anymore

2012-04-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch Added file: http://bugs.python.org/file25406/json_parse_constant_doc.patch ___ Python tracker ___ __

[issue14692] json.joads parse_constant callback not working anymore

2012-04-29 Thread Hynek Schlawack
Hynek Schlawack added the comment: 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 us

[issue14692] json.joads parse_constant callback not working anymore

2012-04-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This behavior was changed in changeset f686aced02a3 three year ago. If this change is intentional, then you need edit documentation. -- nosy: +storchaka ___ Python tracker

[issue14692] json.joads parse_constant callback not working anymore

2012-04-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue14692] json.joads parse_constant callback not working anymore

2012-04-29 Thread Jakob Simon-Gaarde
New submission from Jakob Simon-Gaarde : Hi It seems like the parse_constant keyword parameter for registering a callback function is no longer called in Python 2.7. http://docs.python.org/library/json.html#json.load I am using Python 2.7.3 on Ubuntu 12.04 I have created and attached a script