it's getting better : only slightly off the point.
Updated: 6/29/2005; 4:39:14 PM.

 

home
python ide
python.root
mailEdit docs
mailEdit.root
scripting news
python.org
python programmer weblogs
zope.org
accordion guy
daily python url
zope zen
bOingbOing
fark
russ lipton
cameron
ian bicking

Subscribe to "it's getting better" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

 
 

Saturday, March 02, 2002

Okay, I came up with a fix for the execution problem. Now, instead of using execscript(), I'm quietly writing out a patched version of the script that bundles up the ouput and sends it back to Radio.

Refresh the code to get the fixes.
10:22:15 AM    


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    


Patrick Logan comments on two of my previous entries.

He's a smart guy. Be sure to read the rest of his stuff too.
9:21:33 AM    


© Copyright 2005 David Brown.



Click here to visit the Radio UserLand website.
 


March 2002
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Feb   Apr