[issue1521] string.decode() fails on long strings

Andreas Eisele report at bugs.python.org
Thu Nov 29 17:20:57 CET 2007


Andreas Eisele added the comment:

An instance of the other problem:

Python 2.5.1 (r251:54863, Aug 30 2007, 16:15:51) 
[GCC 4.1.0 (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
__[1] >>> s=" "*int(25E8)
2.990000 sec
__[1] >>> u=s.decode("utf-8")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"/home/cl-home/eisele/lns-root-07/lib/python2.5/encodings/utf_8.py",
line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
TypeError: utf_8_decode() argument 1 must be (unspecified), not str
__[1] >>>

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1521>
__________________________________


More information about the Python-bugs-list mailing list