[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

Robert Collins report at bugs.python.org
Tue Sep 13 00:16:10 EDT 2016


Robert Collins added the comment:

I think the patch should either be rejected, or also handle trailing spaces: if we're taking the RFC definition of whitespace not being structural then we should also eat trailing space, which will change the  check for extra data in decode to just checking end == s.len().

Obviously a test for the trailing case needs to be added as well.

----------
nosy: +rbcollins

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15393>
_______________________________________


More information about the Python-bugs-list mailing list