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 martin.panter
Recipients martin.panter, mherrmann.at
Date 2021-10-23.07:27:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1634974055.04.0.85724448451.issue45585@roundup.psfhosted.org>
In-reply-to
Content
The subprocess module only uses the file object to get a file handle by calling the "fileno" method. See Issue 19992 about documenting this. For Python to compress the output of the child process, you would need a pipe.

Gzip file objects provide the "fileno" method, but it just returns the underlying file descriptor. Data written to that file descriptor would normally already be compressed by Python and goes straight to the OS. There is also Issue 24358 opened about whether "fileno" should be implemented.
History
Date User Action Args
2021-10-23 07:27:35martin.pantersetrecipients: + martin.panter, mherrmann.at
2021-10-23 07:27:35martin.pantersetmessageid: <1634974055.04.0.85724448451.issue45585@roundup.psfhosted.org>
2021-10-23 07:27:35martin.panterlinkissue45585 messages
2021-10-23 07:27:34martin.pantercreate