Calling a function from module question.

Irmen de Jong irmen.NOSPAM at xs4all.nl
Tue Feb 15 15:37:01 EST 2005


Sean wrote:

> Then I would have a script that uses the
> print_this function defined in the module
> without using the module name in the call.



from module_name import print_this

or, even:

from module_name import print_this as other_nice_name

--Irmen



More information about the Python-list mailing list