Message404858
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. |
|
Date |
User |
Action |
Args |
2021-10-23 07:27:35 | martin.panter | set | recipients:
+ martin.panter, mherrmann.at |
2021-10-23 07:27:35 | martin.panter | set | messageid: <1634974055.04.0.85724448451.issue45585@roundup.psfhosted.org> |
2021-10-23 07:27:35 | martin.panter | link | issue45585 messages |
2021-10-23 07:27:34 | martin.panter | create | |
|