[issue1751] Fast BytesIO implementation + misc changes

Alexandre Vassalotti report at bugs.python.org
Mon Mar 31 00:05:05 CEST 2008

Alexandre Vassalotti <alexandre at peadrop.com> added the comment:

I think that check in write_bytes() is a guard to avoid resize_buffer()
from truncating the string stored in the buffer. However, I am not sure
if it is still necessary.

I don't know why help() doesn't work on BytesIO instances. But, the
problem doesn't seems to be in my code, since `help(sys.stdin)` doesn't
work either.

Finally regarding test_StringIO, see msg59460. Anyway, test_StringIO is
superseded by test_memoryio included my patch and should be removed from
the stdlib.

Tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list