RotatingFileHandler key error when parsing a logging config file

2009-12-21 Thread jordilin
Hi, I've a config for logging where I set up a file rotation with handlers.RotatingFileHandler and when the app parses the logging config it says keyError when trying to parse that section ('RotatingFileHandler' is not defined). Curiously enough, I can do import logging and from logging.handlers i

Re: postprocessing in os.walk

2009-10-11 Thread jordilin
Well, you could use the alternative os.path.walk instead. You can pass a callback as a parameter, which will be invoked every time you bump into a new directory. The signature is os.path.walk (path,visit,arg). Take a look at the python library documentation. On 11 Oct, 00:12, kj wrote: > Perl's

Re: Data visualization in Python

2009-08-17 Thread jordilin
On 17 ago, 21:10, kj wrote: > I'm looking for a good Python package for visualizing > scientific/statistical data.  (FWIW, the OS I'm interested in is > Mac OS X). > > The users of this package will be experimental biologists with > little programming experience (but currently learning Python). >

capturing ESC, page up/down in Python

2008-10-26 Thread jordilin
Is there any way to capture the keyboard events ESC, page up (next page), page down (previous page) in Python?. I mean, how can I capture if user presses one of those keys in a terminal based application? I was thinking about pygame.key.get_pressed from the pygame module, but I don't feel really ha