Florent Xicluna <florent.xicl...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue8025>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to