Antti Laine added the comment:
> you are changing the signature of "decode()" and that would be a
> compatibility problem
I was changing the signature of raw_decode(), by adding a(n almost) private
keyword. I really don't see how that would affect compatibility.
&g
Antti Laine added the comment:
Suggestion for a patch for 3.3.0. I wasn't quite sure how the testcases were
supposed to be loaded. Sorry if I made a mess ;)
--
keywords: +patch
Added file:
http://bugs.python.org/file26434/json-raw-decoder-fix-whitespace
Antti Laine added the comment:
My coworker just submitted a pull request for a possible fix to simplejson on
github.
https://github.com/simplejson/simplejson/pull/38
--
___
Python tracker
<http://bugs.python.org/issue15
New submission from Antti Laine :
raw_decode on json.JSONDecoder does not handle leading whitespace. According to
RFC 4627, section 2, whitespace can precede an object. With json.loads leading
whitespace is handled just fine.
d = json.JSONDecoder()
d.raw_decode(' {}')
ValueErro