On Tue, Apr 22, 2008 at 11:55 AM, derwisch < [EMAIL PROTECTED]> wrote:
> > Dear all, > I have the following line in a script: > > outputFile.write(p.v.t.headString()) > > An error is raised when the line is executed: > "Type error: 'unicode' object not callable". Do p.headString() instead of p.v.t.headString() t.headString is a Python string in the trunk. In the sax-graph world it is replaced by t._headString, and t.headString() returns t._headString. So your code will work in the sax-graph world. In general, however, it is best style to use p methods whenever possible. In particular, don't use tnode methods unless you must. Edward --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~----------~----~----~----~------~----~------~--~---
