[docs] [issue21995] Idle: pseudofiles have no buffer attribute.

Serhiy Storchaka report at bugs.python.org
Thu Sep 24 09:24:22 CEST 2015


Serhiy Storchaka added the comment:

https://docs.python.org/3/library/io.html#io.TextIOBase.buffer
"""buffer

The underlying binary buffer (a BufferedIOBase instance) that TextIOBase deals with. This is not part of the TextIOBase API and may not exist in some implementations."""

It is common to replace standard streams with StringIO.

----------
nosy: +serhiy.storchaka

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


More information about the docs mailing list