This is almost the same code as Greg's with the only difference being that
test for configuration having been done. But the test is unnecessary. I
don't see how setConfig could be invoked in the super of the base class (A),
so such a test would be relevant only in subclasses, if they DO
Dan Perl wrote:
So far, so good! But let's assume that I want to change the __init__
methods so that they take a configuration as an argument so the objects are
created and configured in one step, like this:
alpha = A(config)
One way would be to make the setConfig call only
in the root class,
Thank you very much, Greg, that does the job! Somehow I couldn't see it and
I needed someone to point out to me.
Dan
Greg Ewing [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Dan Perl wrote:
So far, so good! But let's assume that I want to change the __init__
methods so that