[Tutor] Using __ini__.py for common fonctions
kliateni at gmail.com
Tue Feb 14 16:12:42 CET 2012
I have 3 functions, common utilities which I use several times in many
modules of a main package.
I don't want to create an utilies.py module in the package. Instead I
declare it in the __init__.py of
the package. Then to use it inside my package I do the following:
from package import my_common_utility_fonction.
Is it ok to do this? Is it a common practise?
Advices are welcome!
More information about the Tutor