[issue19361] Specialize exceptions thrown by JSON parser

2015-01-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 07af9847dbec by Serhiy Storchaka in branch 'default': Issue #19361: JSON decoder now raises JSONDecodeError instead of ValueError. https://hg.python.org/cpython/rev/07af9847dbec -- nosy: +python-dev ___ P

[issue19361] Specialize exceptions thrown by JSON parser

2015-01-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue19361] Specialize exceptions thrown by JSON parser

2014-12-02 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue19361] Specialize exceptions thrown by JSON parser

2014-11-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch provides JSONDecodeError without end* attributes and with changed message for "Extra data". -- Added file: http://bugs.python.org/file37328/json_JSONDecodeError_2.patch ___ Python tracker

[issue19361] Specialize exceptions thrown by JSON parser

2014-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: While we here may be change error messages? The only error which contains end position is "Extra data". And it doesn't look clean to me why end position should be mentioned at all (it is always len(data) here). I suggest to drop it, this will make error mess

[issue19361] Specialize exceptions thrown by JSON parser

2014-10-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch Added file: http://bugs.python.org/file36810/json_JSONDecodeError.patch ___ Python tracker ___ _

[issue19361] Specialize exceptions thrown by JSON parser

2014-10-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which adopts JSONDecodeError from simplejson. Unlike to simplejson it is located in the json.decoder module (json uses different way to pass an error from scanner to decoder). -- assignee: -> serhiy.storchaka keywords: +needs review

[issue19361] Specialize exceptions thrown by JSON parser

2014-05-22 Thread Bob Ippolito
Bob Ippolito added the comment: simplejson v3.5.1 is probably a good target, let me know if there's anything that you'd like me to merge back in from stdlib to make maintenance easier. I haven't been tracking stdlib except when I've been added to issues. -- ___

[issue19361] Specialize exceptions thrown by JSON parser

2014-05-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Adding it to the stdlib is only matter of time. I think we can go forward with it right now. -- nosy: +bob.ippolito ___ Python tracker ___

[issue19361] Specialize exceptions thrown by JSON parser

2014-05-15 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue19361] Specialize exceptions thrown by JSON parser

2013-10-23 Thread Utkarsh Upadhyay
Utkarsh Upadhyay added the comment: Excellent! Is there an issue for merging Simplejson into stdlib? If so, can this issue be linked to that issue? -- ___ Python tracker ___ ___

[issue19361] Specialize exceptions thrown by JSON parser

2013-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Simplejson already have JSONDecodeError. class JSONDecodeError(ValueError): """Subclass of ValueError with the following additional properties: msg: The unformatted error message doc: The JSON document being parsed pos: The start index of doc

[issue19361] Specialize exceptions thrown by JSON parser

2013-10-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Library (Lib) nosy: +ezio.melotti, pitrou, rhettinger versions: +Python 3.4 ___ Python tracker ___ _

[issue19361] Specialize exceptions thrown by JSON parser

2013-10-23 Thread Utkarsh Upadhyay
New submission from Utkarsh Upadhyay: The JSON parser currently throws exceptions which contain information about where the error happened but this information is encoded in a string and not available to the programmer. This leads to issues like this: http://stackoverflow.com/questions/1951940