Re: Dynamically declared shared constant/variable imported twice problem

2009-05-01 Thread Gabriel Rossetti
Peter Otten wrote: Gabriel Rossetti wrote: I have three modules A, B, C; A declares this globally : UpdateEvent, UPDATE_EVENT_ID = wx.lib.newevent.NewEvent() Then they import stuff from each other: - A imports a constant from module B (in "__main__") - A imports a class and some consta

Re: Dynamically declared shared constant/variable imported twice problem

2009-05-01 Thread Peter Otten
Gabriel Rossetti wrote: > I have three modules A, B, C; > > A declares this globally : > > UpdateEvent, UPDATE_EVENT_ID = wx.lib.newevent.NewEvent() > > Then they import stuff from each other: > > - A imports a constant from module B (in "__main__") > - A imports a class and some constants f

Dynamically declared shared constant/variable imported twice problem

2009-05-01 Thread Gabriel Rossetti
Hello everyone, I have three modules A, B, C; A declares this globally : UpdateEvent, UPDATE_EVENT_ID = wx.lib.newevent.NewEvent() Then they import stuff from each other: - A imports a constant from module B (in "__main__") - A imports a class and some constants from module C - B imports a c