Message201025
| Author |
serhiy.storchaka |
| Recipients |
ezio.melotti, musically_ut, pitrou, rhettinger, serhiy.storchaka |
| Date |
2013年10月23日.13:56:31 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1382536591.54.0.824152548476.issue19361@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|