Re: [Tutor] Using __ini__.py for common fonctions

2012-02-14 Thread Karim
Le 14/02/2012 20:25, Alan Gauld a écrit : On 14/02/12 19:08, Karim wrote: Advices are welcome! Asking the same question twice does not double your chances of getting a reply. It may even reduce them. As to your question, it's not the most common way to do it, it's not even the way I'd r

Re: [Tutor] Using __ini__.py for common fonctions

2012-02-14 Thread Alan Gauld
On 14/02/12 19:08, Karim wrote: Advices are welcome! Asking the same question twice does not double your chances of getting a reply. It may even reduce them. As to your question, it's not the most common way to do it, it's not even the way I'd recommend since what it does is hide your code

[Tutor] Using __ini__.py for common fonctions

2012-02-14 Thread Karim
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 thi

[Tutor] Using __ini__.py for common fonctions

2012-02-14 Thread Karim
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 inside my package I do the following: from package