[issue45387] GzipFile.write should be buffered

2021-10-06 Thread Marcel Martin
Change by Marcel Martin : -- nosy: +marcelm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue45387] GzipFile.write should be buffered

2021-10-06 Thread Ruben Vorderman
Change by Ruben Vorderman : -- components: +Library (Lib) type: -> performance versions: +Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker

[issue45387] GzipFile.write should be buffered

2021-10-06 Thread Ruben Vorderman
New submission from Ruben Vorderman : Please consider the following code snippet: import gzip import sys with gzip.open(sys.argv[1], "rt") as in_file_h: with gzip.open(sys.argv[2], "wt", compresslevel=1) as out_file_h: for line in in_file_h: # Do