[XML-SIG] Py-ish PySax Suggestion #2
Mon, 26 Apr 1999 16:00:42 -0500
I would like to suggest that we copy the *mllib start_foo convention for
PySAX. Here's what a HandlerBase.StartElement would look like for that:
def startElement( self, tagname, attrs ):
method = getattr( self, "start_"+tagname, None)
method( attrs )
self.startUnknownElement( tagname, attrs )
def endElement( self, tagname, attrs ):
method = getattr( self, "end_"+tagname, None)
self.startUnknownElement( tagname )
def startUnknownElement( self, tagname, attrs ):
def endUnknownElement( self, tagname ):
Paul Prescod - ISOGEN Consulting Engineer speaking for only himself
Company spokeswoman Lana Simon stressed that Interactive
Yoda is not a Furby. Well, not exactly.
"This is an interactive toy that utilizes Furby technology,"
Simon said. "It will react to its surroundings and will talk."