Re: python __import__ question

2006-05-24 Thread Ben Finney
Evgeniy Zamriy <[EMAIL PROTECTED]> writes: > 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 Your example is incomplete.

python __import__ question

2006-05-24 Thread Evgeniy Zamriy
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 -- http://ma