Saturday, 7 September 2013

General file open for Python which does not care about file compression

General file open for Python which does not care about file compression

In my data analysis I usually have to handle all kinds of ascii files
(with either space or comma separated values), and the large ones I
regularly compress, especially if they end up in svn. Is there a way to
write a anyOpen() function which figures out the zip status from the file
name and opens it in appropriate way?

No comments:

Post a Comment