[New-bugs-announce] [issue14692] json.joads parse_constant callback not working anymore

Jakob Simon-Gaarde report at bugs.python.org
Sun Apr 29 12:34:25 CEST 2012

New submission from Jakob Simon-Gaarde <jakobsg at gmail.com>:

It seems like the parse_constant keyword parameter for registering a callback function is no longer called in Python 2.7.


I am using Python 2.7.3 on Ubuntu 12.04

I have created and attached a script that shows the problem.
Output in Python 2.6:
Met an int!
Met a constant!
{u'a': None, u'b': None}

Output in Python 2.7:
Met an int!
{u'a': None, u'b': False}

So parse_int callback still works btw.

Best Regards Jakob Simon-Gaarde

components: Extension Modules
files: test_parse_constant.py
messages: 159596
nosy: Jakob.Simon-Gaarde
priority: normal
severity: normal
status: open
title: json.joads parse_constant callback not working anymore
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file25405/test_parse_constant.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list