-
Website
http://tav.espians.com/ -
Original page
http://www.asktav.com/logrep-a-simple-apache-log-analysis-script.html -
Subscribe
All Comments -
Community
-
Top Commenters
-
stayce
1 comment · 1 points
-
Wybo_Wiersma
1 comment · 1 points
-
chenz
1 comment · 1 points
-
holgerkrekel
1 comment · 1 points
-
Philip Hofstetter
2 comments · 2 points
-
-
Popular Threads
-
Ciao Python, Hola Go!
4 weeks ago · 7 comments
-
Ciao Python, Hola Go!
(Personally, I'm rather unhappy that 'pydoc optparse' doesn't have an example right there in the module docstring.)
Because the format I use with single-dash followed by word and arbitrary parameters is rather cumbersome to do with optparse..
I do like optparse and have been using it since the days of Optik, so highly recommend it for any public facing projects.
[ps9392]$ python logrep.py access.log.2009-07-08 -what -total
Traceback (most recent call last):
File "logrep.py", line 27, in ?
from collections import defaultdict
ImportError: cannot import name defaultdict