How do I access a main frunction from an import module?

Jim jscrerar at compuserve.com
Fri Nov 24 18:19:41 CET 2006


Bjoern Schliessmann wrote:
> Jim wrote:
>
> > I have created an import module.  And would like to access a
> > function from the main script, e.g.,
>
> May I ask why? This style violates "normal" module philosophy.
>
> Regards,
>
>
> Björn
>
> --
> BOFH excuse #307:
>
> emissions from GSM-phones

Application abc is designed as a complete module.  The user is to
script their own functions to work with application abc.
 
Thanks,
JIm




More information about the Python-list mailing list