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.
1 parent 2ed237b commit eb9fc52Copy full SHA for eb9fc52
1 file changed
Doc/library/sys.rst
@@ -709,6 +709,12 @@ always available.
709
:func:`os.popen`, :func:`os.system` or the :func:`exec\*` family of functions in
710
the :mod:`os` module.)
711
712
+ .. note::
713
+
714
+ The standard streams are text in text mode by default. To write or read
715
+ binary data to these, use the underlying binary buffer. For example, to
716
+ write bytes to :data:`stdout`, use ``sys.stdout.buffer.write(b'abc')``.
717
718
719
.. data:: __stdin__
720
__stdout__
0 commit comments