Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff85bca commit 3261fa5Copy full SHA for 3261fa5
1 file changed
Doc/library/sys.rst
@@ -781,11 +781,10 @@ always available.
781
:func:`os.popen`, :func:`os.system` or the :func:`exec\*` family of functions in
782
the :mod:`os` module.)
783
784
- .. note::
785
-
786
- The standard streams are in text mode by default. To write or read binary
787
- data to these, use the underlying binary buffer. For example, to write
788
- bytes to :data:`stdout`, use ``sys.stdout.buffer.write(b'abc')``.
+ The standard streams are in text mode by default. To write or read binary
+ data to these, use the underlying binary buffer. For example, to write bytes
+ to :data:`stdout`, use ``sys.stdout.buffer.write(b'abc')``. Using
+ :meth:`io.TextIOWrapper.detach` streams can be made binary by default.
789
790
791
.. data:: __stdin__
0 commit comments