ENH: reading and writing to compressed files
Interaction with compressed files has been fixed and revamped.
Compressed files can be read and written directly to and from gz
,
bz2
and xz
files. File type can also be deduced from compressed
filenames or parsing the beginning of a compressed file.
Added tests to check that it works across all Python versions and all modes.
(The previous version only worked for reading gz or bz2 in Python 2, and if filetype was explicitly specified.)