variable scoping across imports?

Fernando Pérez fperez528 at yahoo.com
Fri Nov 30 09:01:14 EST 2001


Roy Mathew wrote:


> I have read the rules on variable scoping pretty carefully, I think.
> Are the circular imports confusing python. (BTW, I am using
> "ActivePython 2.1, build 210 ActiveState").
> 
> What am I missing?

Circular inclusions tend to be a sign that you have to stop and 
rethink your construction in a fundamentally cleaner manner. There 
*maybe* cases where they're justified, but in general they are just 
the sign of a misunderstood design.

cheers,

f



More information about the Python-list mailing list