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 wolma
Recipients docs@python, methane, wolma
Date 2014-04-03.12:44:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1396529079.15.0.147890465893.issue21146@psf.upfronthosting.co.za>
In-reply-to
Content
>> 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.
History
Date User Action Args
2014-04-03 12:44:39wolmasetrecipients: + wolma, methane, docs@python
2014-04-03 12:44:39wolmasetmessageid: <1396529079.15.0.147890465893.issue21146@psf.upfronthosting.co.za>
2014-04-03 12:44:39wolmalinkissue21146 messages
2014-04-03 12:44:38wolmacreate