python __import__ question

Evgeniy Zamriy codebuger at gmail.com
Wed May 24 17:10:13 CEST 2006


Hello, All:

I have this code:
  try:
      empty_mod = __import__(some_empty_module)
  except ImportError:
      print "test"
      raise

But python doesn't work with this except:
    ImportError: No module named ....

My python version is 2.4.2 (Linux)

Thanks for your replies....



More information about the Python-list mailing list