Florent Xicluna <[email protected]> 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 <[email protected]>
<http://bugs.python.org/issue8025>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com