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 corona10
Recipients corona10, erlendaasland, ethan.furman, vstinner
Date 2020-04-08.13:50:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586353808.65.0.372115643566.issue39851@roundup.psfhosted.org>
In-reply-to
Content
Victor,
I found a way how to deal with it.
The submitted file will show how it can be handled.

If you remove the try: finally statement.
You can see the same stdout which occurred from tarfile

But I'd like to listen to your opinion before submitting the patch. :)

➜  cpython git:(master) ✗ set -o pipefail
➜  cpython git:(master) ✗ ./python.exe ttt.py
test
hi
➜  cpython git:(master) ✗ ./python.exe ttt.py | true
➜  cpython git:(master) ✗ echo $?
32
History
Date User Action Args
2020-04-08 13:50:08corona10setrecipients: + corona10, vstinner, ethan.furman, erlendaasland
2020-04-08 13:50:08corona10setmessageid: <1586353808.65.0.372115643566.issue39851@roundup.psfhosted.org>
2020-04-08 13:50:08corona10linkissue39851 messages
2020-04-08 13:50:08corona10create