eg
def foo(parent):
print parent.a
On 05/10/05, Matt Williams <[EMAIL PROTECTED]> wrote:
Dear List,
I'm trying to clarify something about accessing variables.
If I have ONE.py file with some variable a, and ONE imports TWO, which
has a variable b, can TWO access variable a (I don't think so, but I
just thought I'd check).
I guess the way round this is just to make some classes & objects, and
then they can easily pass parameters to each other, but I just thought
I'd check.
Matt
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor