Re: Dont know what my class is called...

2008-02-17 Thread Ben Finney
"Adam W." <[EMAIL PROTECTED]> writes: > I am using the xml.sax package, and I'm running into a little > problem. When I use the parse(url, ContentHandler()) method, I don't > know what parse() is naming the instance of ContentHandler. I'm not sure what you're asking. Why do you need to know the

Re: Dont know what my class is called...

2008-02-17 Thread Adam W.
On Feb 17, 6:12 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > It's a bit hard to get what you are after, but maybe this solves your > problem? > > handler = FeedHandler() > > parse(handler) > > print handler.my_instance_variable_of_choice > > The above assumes that my_instance_variable_of_cho

Re: Dont know what my class is called...

2008-02-17 Thread Diez B. Roggisch
Adam W. schrieb: > I am using the xml.sax package, and I'm running into a little > problem. When I use the parse(url, ContentHandler()) method, I don't > know what parse() is naming the instance of ContentHandler. > > I have a sub-class of ContentHandler make a dictionary of what it > parses, but

Dont know what my class is called...

2008-02-17 Thread Adam W.
I am using the xml.sax package, and I'm running into a little problem. When I use the parse(url, ContentHandler()) method, I don't know what parse() is naming the instance of ContentHandler. I have a sub-class of ContentHandler make a dictionary of what it parses, but the problem is I don't know