Re: Imports visibility in imported modules problem

2008-08-24 Thread Maric Michaud
Le Sunday 24 August 2008 12:11:03 Mohamed Yousef, vous avez écrit : > On Sun, Aug 24, 2008 at 5:54 AM, Patrick Maupin <[EMAIL PROTECTED]> wrote: > > On Aug 23, 7:27 pm, "Mohamed Yousef" <[EMAIL PROTECTED]> wrote: > >> The problem I'm asking about is how can imported modules be aware of > >> other i

Re: Imports visibility in imported modules problem

2008-08-24 Thread Mohamed Yousef
On Sun, Aug 24, 2008 at 5:54 AM, Patrick Maupin <[EMAIL PROTECTED]> wrote: > On Aug 23, 7:27 pm, "Mohamed Yousef" <[EMAIL PROTECTED]> wrote: > >> 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 >> importin

Re: Imports visibility in imported modules problem

2008-08-23 Thread Terry Reedy
Mohamed Yousef wrote: 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 If you want to use module A in both B and C, B and C should both import A. No problem. > (avoiding importing problems and Consic

Re: Imports visibility in imported modules problem

2008-08-23 Thread Patrick Maupin
On Aug 23, 7:27 pm, "Mohamed Yousef" <[EMAIL PROTECTED]> wrote: > 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 ) You could import sys and look at sys

Imports visibility in imported modules problem

2008-08-23 Thread Mohamed Yousef
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