Wolfgang Maier added the comment: >> with open(src, 'rb') as f_in: >> with gzip.open(dst, 'wb') as f_out: >> shutil.copyfileobj(f_in, f_out)
+1 !! exactly as fast as my suggestion (with compression and de-compression), but a lot clearer ! Hadn't thought of it. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21146> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com