[issue18680] JSONDecoder should document that it raises a ValueError for malformed data

2013-08-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset f8cf0f997dfa by Felix Crux in branch '3.3': Documenting that json.load may raise a ValueError. http://hg.python.org/cpython/rev/f8cf0f997dfa New changeset 524693d62093 by Felix Crux in branch '2.7': Documenting that json.load may raise a ValueError.

[issue18680] JSONDecoder should document that it raises a ValueError for malformed data

2013-08-12 Thread David Wolever
Changes by David Wolever : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue18680] JSONDecoder should document that it raises a ValueError for malformed data

2013-08-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset f11683963558 by Felix Crux in branch 'default': Documenting that json.load may raise a ValueError. http://hg.python.org/cpython/rev/f11683963558 New changeset 905fad4cb40a by Felix Crux in branch 'default': Documenting that json.load may raise a Val

[issue18680] JSONDecoder should document that it raises a ValueError for malformed data

2013-08-12 Thread Felix Crux
Felix Crux added the comment: Working with wolever on the process, generated the attached patch. -- keywords: +patch nosy: +felixc, wolever Added file: http://bugs.python.org/file31263/18680.patch ___ Python tracker

[issue18680] JSONDecoder should document that it raises a ValueError for malformed data

2013-08-08 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- keywords: +easy stage: -> needs patch versions: -Python 2.6, Python 3.1, Python 3.2, Python 3.5 ___ Python tracker ___ __

[issue18680] JSONDecoder should document that it raises a ValueError for malformed data

2013-08-07 Thread Corey Farwell
Corey Farwell added the comment: Ideally, this would also be decoumented in json.loads/json.load -- ___ Python tracker ___ ___ Python-

[issue18680] JSONDecoder should document that it raises a ValueError for malformed data

2013-08-07 Thread Corey Farwell
New submission from Corey Farwell: Before someone comes in and tries to correct me, I know Python documentation is different than Javadocs. It is common to test if the JSON is malformed using a try...catch. What if I want to catch something more specific than Exception? The only way a user wou