[XML-SIG] PySAX more pythonish
Paul Prescod
paul@prescod.net
Fri, 23 Apr 1999 12:06:22 -0500
I would like the attributes parameter to startElement to be defaulted in
all SAX implementations.
I would also like a new method called "text" similar to the one
implemented by xml.dom.sax_builder. "text" just takes a text string
instead of a string and offsets. That's a little more pythonish for both
the caller and callback.
The default DocumentHandler would re-route "characters" to "text". Someone
who needed the (potentially) more efficient behavior of "characters" could
override the implementation and re-route text to characters instead.
What do you think?
--
Paul Prescod - ISOGEN Consulting Engineer speaking for only himself
http://itrc.uwaterloo.ca/~papresco
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."
- http://www.wired.com/news/news/culture/story/19222.html