Re: Help on object scope?

2007-02-27 Thread bmaron2
On Feb 26, 1:16 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Mon, 26 Feb 2007 07:54:12 +0200, "Hendrik van Rooyen" > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > > > > from param import * > > "from <> import *" (or any "from <> import ..." variant) is NOT th

Re: Help on object scope?

2007-02-25 Thread bmaron2
On Feb 25, 9:37 am, hg <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hello everybody, > > > I have a (hopefully) simple question about scoping in python. I have a > > program written as a package, with two files of interest. The two > > files are /p.py and /lib/q.py > > > My file p.py l

Help on object scope?

2007-02-25 Thread bmaron2
Hello everybody, I have a (hopefully) simple question about scoping in python. I have a program written as a package, with two files of interest. The two files are /p.py and /lib/q.py My file p.py looks like this: --- from lib import q def main(): global r r = q.object1() s = q.object2()