Import, Inheritance, Scoping -- I'm doing something wrong with one of these

2009-03-07 Thread Elijah Newren
Hi, I have three files in a simple testcase, and when I run $ main.py callee.options This comes back with a Traceback pointing out the following error: File "callee.options", line 5, in __init__ Foo.__init__(self, value) NameError: global name 'Foo' is not defined The three files are: -

Re: Import, Inheritance, Scoping -- I'm doing something wrong with one of these

2009-03-07 Thread Peter Otten
Elijah Newren wrote: > Hi, > > I have three files in a simple testcase, and when I run > $ main.py callee.options > This comes back with a Traceback pointing out the following error: > File "callee.options", line 5, in __init__ > Foo.__init__(self, value) > NameError: global name 'Foo' is

Re: Import, Inheritance, Scoping -- I'm doing something wrong with one of these

2009-03-07 Thread Elijah Newren
Hi, For some reason, Peter Otten's response is not showing up in my inbox, but did show up in the mailing list archives (http://mail.python.org/pipermail/python-list/2009-March/703850.html). So I'll respond to my own email, quote him, and respond that way. On Sat, Mar 7, 2009 at 9:46 AM, Elijah

Re: Import, Inheritance, Scoping -- I'm doing something wrong with one of these

2009-03-07 Thread Peter Otten
Elijah Newren wrote: > Hi, > > For some reason, Peter Otten's response is not showing up in my inbox, > but did show up in the mailing list archives > (http://mail.python.org/pipermail/python-list/2009-March/703850.html). > So I'll respond to my own email, quote him, and respond that way. > > O