Calling a function from module question.

Sean sean at buildingonline.com
Tue Feb 15 16:45:14 EST 2005


>>>from module_name import print_this
>>>
>>>or, even:
>>>
>>>from module_name import print_this as other_nice_name
>>
>> So what if I have a whole bunch of functions - say 25 of them.
>> Is there a way to do this without naming each function?
>
> Yes [1], but it's basically deprecated and you shouldn't use it. Consider 
> refactoring your code.
>

Refactoring my code?  Sorry, I am not sure what you mean here.

How would one refactor the example in my original post? 





More information about the Python-list mailing list