Re: how can I create/set a 'file' reference in a attribute of a class

2007-02-26 Thread Bjoern Schliessmann
ken wrote: > Hi, > i have a class: > > class LogHandler(ContentHandler): > # a reference to a file open by some other function/class > outputFile; What do you intend to achieve with this last line, and what's the ';' for? > First, I get an error saying 'NameError: global name 'outputFil

Re: how can I create/set a 'file' reference in a attribute of a class

2007-02-26 Thread Larry Bates
ken wrote: > Hi, > i have a class: > > class LogHandler(ContentHandler): > # a reference to a file open by some other function/class > outputFile; > > > def endElement(self, name): > doSomething(self, "GroupResultList", self.text, outputFile) > > > First, I get an error sa