Is it possible to use the logging-module in a threadless environment?

R

Roger

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


Thanks in advance,
Roger Erens
 
D

Denis S. Otkidach

On 17 Feb 2005 05:41:12 -0800
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top