4 Jul
2011
4 Jul
'11
11:01 a.m.
On Monday 27 June 2011 11:35:38 Tyler Weston wrote:
I have a few questions about this, as I am new to python. I thought that modules were supposed to be process-global. How do i enforce this and prevent __init__ from being called twice? Are the warnings benign? Should I be concerned about the state of my library static globals (ie is the compiled code going through a second initialization process)?
In your case, the warnings are benign. However, the fundamental problem of __init__ begin called twice breaks all sorts of expected invariants for python. This should probably be resolved at the level of the code that interfaces with django. Regards, Ravi