Thanks for the note, Nick.
I ended up with cycles as a historical reason. Some code that were
written long time ago did not anticipate that part of it will get
sub-classed.
Thanks again.
Nick Vatamaniuc wrote:
> John,
> Cycles are tricky. Python is an interpreted dynamic language, whatever
> ob
John,
Cycles are tricky. Python is an interpreted dynamic language, whatever
object you instantiate in your methods is a different thing than class
hierarchy. Your class hierarchy is fine: ClassA->ClassASubclass->ClassC
and it should work. If it doesn't, create a quick mock example and
post it alo
I think I got the answer by playing around a bit. It appears you
*don't* need to forward declare things. For example, the following
code works:
class a:
def run(self):
new_a=a_sub()
new_a.print_it()
class a_sub(a):
def print_it(self):
print "Hi"
b=a().run()
Regards,
John He