[issue3623] _json: fix raise_errmsg(), py_encode_basestring_ascii() and linecol()

Senthil report at bugs.python.org
Fri Sep 5 20:11:11 CEST 2008


Senthil <orsenthil at gmail.com> added the comment:

issue3763 mentions about the similar problem with json library.
The traceback posted illustrates the issue (c) mentioned here:

  File "C:\Python30\lib\json\decoder.py", line 30, in errmsg
    lineno, colno = linecol(doc, pos)
  File "C:\Python30\lib\json\decoder.py", line 21, in linecol
    lineno = doc.count('\n', 0, pos) + 1
TypeError: expected an object with the buffer interface

----------
nosy: +orsenthil

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


More information about the Python-bugs-list mailing list