[XML-SIG] Uniform interface with Python 2.0

Paul Prescod paul@prescod.net
Wed, 13 Sep 2000 23:48:35 -0700

"Martin v. Loewis" wrote:
> ...
> In Python 2.0, saxexts is not supported. Instead, you have to know
> that the expatreader is there, so you write

No, that's not the usual way to do it. You don't need to know anything
about Expat to use SAX.

> Alternatively, in Python 2.0, you can write
> import xml.sax
> xml.sax.parse(file, MyHandler())

Right. That's the better way to do it.

> Again, that won't work in PyXML: xml.sax does not have the parse
> function.

I believe the plan is to have PyXML merely add things to the Python 2
XML module without removing anything, but PyXML has not been made 2.0
compatible yet.

 Paul Prescod - Not encumbered by corporate consensus
Simplicity does not precede complexity, but follows it. 
	- http://www.cs.yale.edu/homes/perlis-alan/quotes.html