[issue8025] TypeError: string argument expected, got 'str'

Florent Xicluna report at bugs.python.org
Fri Feb 26 17:23:36 CET 2010


Florent Xicluna <florent.xicluna at gmail.com> added the comment:

The error is slightly different with _pyio:

>>> import _pyio as io; fake = io.StringIO(); fake.write('boo')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "./py2trunk/Lib/_pyio.py", line 1559, in write
    s.__class__.__name__)
TypeError: can't write str to text stream

Is it better?

----------

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


More information about the Python-bugs-list mailing list