[Tutor] Using __ini__.py for common fonctions

Karim kliateni at gmail.com
Tue Feb 14 20:08:18 CET 2012


Hello All,

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 I do the following:

from packe

Is it ok to do this? Is it a common practise?

Advices are welcome!



More information about the Tutor mailing list