Monthly Archives: March 2011

Reading gzip files in Python – fast!

I have been doing lots of parsing of Apache log files recently with Python. Speed is of the essence, so I was interested to know if the speed issues mentioned in http://bugs.python.org/issue7471 are still relevant. So I set out to … Continue reading

Posted in Python, Software | 7 Comments

Python Standard Library

There are some gems in the Python standard library which, once found, get regular use – at least by me. Here are some of them. 1. enumerate A built-in function, which allows you to replace code like this: with the … Continue reading

Posted in Python, Software | Leave a comment