namespaces getting confusing

Mark Robinson m.1.robinson at herts.ac.uk
Tue Sep 4 06:38:25 EDT 2001


Thanks guys, I see the problem. Perhaps If I explain why I was trying
to do that you could suggest a better alternative.

I have a module which basically declares a number of global variables,
reads some files and basically performs a number of initialisation steps.

Is the best thing to stick all this in the __init__() of a class which I 
declare as global?

messily yours
blobby

Skip Montanaro wrote:

>     Mark> can anyone explain why I get the following attribute error.
> 
> You have a circular dependency between Motif.py and param.py.  Motify
> imports param before readSeq has been defined, then param tries to access
> Motif.readSeq. 
> 
> 




More information about the Python-list mailing list