This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author akira
Recipients akira, docs@python
Date 2014-05-12.17:59:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1399917563.48.0.572590350966.issue21485@psf.upfronthosting.co.za>
In-reply-to
Content
The current code example contains [1]:

    print("Python failed with exit code %s:" % exitcode)
    sys.stdout.flush()
    sys.stdout.buffer.flush()
    sys.stdout.buffer.write(stdout)
    sys.stdout.buffer.flush()

that looks bizarre.

Either a comment should be added that explains why the `.flush()` calls
are necessary or they should be removed.

I've attached the documentation patch that removes the calls.

[1] http://hg.python.org/cpython/file/2af5a52b9b87/Doc/library/asyncio-subprocess.rst#l227
History
Date User Action Args
2014-05-12 17:59:23akirasetrecipients: + akira, docs@python
2014-05-12 17:59:23akirasetmessageid: <1399917563.48.0.572590350966.issue21485@psf.upfronthosting.co.za>
2014-05-12 17:59:23akiralinkissue21485 messages
2014-05-12 17:59:23akiracreate