Message201025
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 where parsing failed
end: The end index of doc where parsing failed (may be None)
lineno: The line corresponding to pos
colno: The column corresponding to pos
endlineno: The line corresponding to end (may be None)
endcolno: The column corresponding to end (may be None)
"""
Adding it to the stdlib is only matter of time. |
|
Date |
User |
Action |
Args |
2013-10-23 13:56:31 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, pitrou, ezio.melotti, musically_ut |
2013-10-23 13:56:31 | serhiy.storchaka | set | messageid: <1382536591.54.0.824152548476.issue19361@psf.upfronthosting.co.za> |
2013-10-23 13:56:31 | serhiy.storchaka | link | issue19361 messages |
2013-10-23 13:56:31 | serhiy.storchaka | create | |
|