Is it possible to use the logging-module in a threadless environment?
Denis S. Otkidach
ods at strana.ru
Thu Feb 17 09:46:10 EST 2005
On 17 Feb 2005 05:41:12 -0800
rlwm.erens at home.nl (Roger) wrote:
> I'd like to use a program (roundup) that imports the logging.config
> module on a machine where I could not get the thread and threading
> modules to compile.
>
> How dangerous is it to changing /lib/python2.4/logging/config.py to
> something like:
>
> import dummy_thread as thread, dummy_threading as threading
I believe it's a bug and logging/config.py should use the same approach
as logging/__init__.py do:
try:
import thread
import threading
except ImportError:
thread = None
--
Denis S. Otkidach
http://www.python.ru/ [ru]
More information about the Python-list
mailing list