En Sun, 24 Aug 2008 07:34:41 -0300, Mohamed Yousef <[EMAIL PROTECTED]> escribió:
> On Sun, Aug 24, 2008 at 9:59 AM, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
>> Mohamed Yousef wrote:
>>
>>> why am i doing this in the first place
>>> I'm in the process of a medium project where imports of modules st
Mohamed Yousef wrote:
mm , this seems to be logically or another good behind logic . as PHP
already uses that convention -from which i thought python also does -
I'm not sure arguing with anyone who tries to help you is the best way
to learn a new programming language.
--
http://mail.pyth
On Aug 24, 9:43 pm, "Mohamed Yousef" <[EMAIL PROTECTED]> wrote:
> but what about module-wide variables what is the approach to them ,
> will i have to store them in a memory table (SQL) , or keep passing
> them between objects - which i really hate -
If you have a set of global variables that you
On Sun, Aug 24, 2008 at 2:27 PM, alex23 <[EMAIL PROTECTED]> wrote:
> On Aug 24, 8:34 pm, "Mohamed Yousef" <[EMAIL PROTECTED]> wrote:
>> and sys ,string.. etc add them all twice or four / n times ?
>> remove one and then forget to remove one of them in a file and start
>> debugging ... this really
On Aug 24, 8:34 pm, "Mohamed Yousef" <[EMAIL PROTECTED]> wrote:
> and sys ,string.. etc add them all twice or four / n times ?
> remove one and then forget to remove one of them in a file and start
> debugging ... this really doesn't look to be a good practice
No, having each module contain all o
On Sun, Aug 24, 2008 at 9:59 AM, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> Mohamed Yousef wrote:
>
>> why am i doing this in the first place
>> I'm in the process of a medium project where imports of modules start
>> to make a jungle and i wanted all needed imports to be in a single
>> file (namel
Mohamed Yousef wrote:
why am i doing this in the first place
I'm in the process of a medium project where imports of modules start
to make a jungle and i wanted all needed imports to be in a single
file (namely __init__.py)
and then all imports are made once and other modules feel it
Python do
Hello ,
The problem I'm asking about is how can imported modules be aware of
other imported modules so they don't have to re-import them (avoiding
importing problems and Consicing code and imports )
Take Example :-
in A.py :-
import B
print dir() # no problems we can see B which contain re module