I've got a Base class with an attribute foo (of type Foo), and a
Derived class (derived from Base). In Derived's constructor, I try to
refer to Base.foo, but python complains:
AttributeError: class Base has no attribute 'foo'
Any ideas? (code below)
=== CODE ===
#!/usr/bin/python
class Foo:
On Tue, 23 Oct 2007 18:54:06 +, mrstephengross wrote:
I've got a Base class with an attribute foo (of type Foo), and a
Derived class (derived from Base). In Derived's constructor, I try to
refer to Base.foo, but python complains:
AttributeError: class Base has no attribute 'foo'