how to use logging.config.fileConfig ?

2009-04-10 Thread Alexandru Moșoi
Hello, I have a problem using logging the library. I copied and modified the example from PEP 282 [0], [1], [2], [3]. If I use logging.basicConfig() everything works fine. If I use logging.config.fileConfig() my loggers get disabled. I checked logging/ config.py and I found a big comment saying th

importing modules from alternate path

2009-03-24 Thread Alexandru Moșoi
I'm trying with no succes to load modules from an alternate path. When installing to default location (no --home specifed) everything works as expected. $ python setup.py install --home=~ running install running build running build_ext running install_lib running install_egg_info Removing /home/vo

derived classes and __getattr__

2008-09-05 Thread Alexandru Moșoi
i'm facing the following problem: class Base(object): def __getattr__(self, attr): return lambda x: attr + '_' + x def dec(callable): return lambda *args: 'dec_' + callable(*args) class Derived(Base): what_so_ever = dec(Base.what_so_ever) # wrong, base doesn't have what_so_ever mumu =