Argh. I just hit a showstopper in the Python Tool. It might be a bug in the execfile() routine, but I can't be sure.
It goes like this... With the following code:
class A:
def __init__(self):
print "A.__init__"
class B(A):
def __init__(self):
A.__init__(self)
print "B.__init__"
test = B()
If I run this directly through Python, it's fine. If I run it through my execution framework (which uses execfile() to run the actual script), it causes a NameError, which claims that it has no idea what A.__init__ is.
Ideas? Need more information?
9:54:11 AM
|