Tricky import question.

David Poundall david at jotax.com
Tue Oct 25 16:44:14 EDT 2005


All I was trying to do with my feeble code attempt, was to return a
reference to the imported module so that I could do...

result = instanceref.main()

where main was a function within the import.

Having glanced at the code in the import section of the help files all
morning, when I actually sat down and read it it turned out the example
code was what I needed.

Its always the way.  

Many thanks for taking time out to reply Bengt.




More information about the Python-list mailing list