[XML-SIG] XML support in Python 1.6

Lars Marius Garshol larsga@garshol.priv.no
02 Jun 2000 16:19:54 +0200

* Andrew M. Kuchling
| 	* Can you call parser.requestUTF8() at any point, even after
| parsing has started?  (I see no reason to forbid this, though it
| would be strange.)

I would be happier if it were forbidden. SAX 2.0 explicitly forbids
this kind of thing and I can see no reason to allow it. If the rest of
you decide otherwise I have no real problems with that, though.
| 	* Do we need a .requestUTF16() or .requestUnicode() method to
| switch things back? 

I assume that this means that pyexpat will return Unicode strings
as default regardless of how it is compiled? If so, I don't really
have any opinion on this.

| Or should it be very general, with
| .requestOutputEncoding('iso-8859-1' or whatever) instead of just
| .requestUTF8?

If there turns out to be a huge demand we can add that later. In any
case, Python 1.6 should make this possible to implement for the user.
| 	* What do we assume for old versions of Expat?  I guess all we
| can do is assume UTF-8, and trust that the strangeness will
| be apparent if it was compiled for UTF-16.

Sounds reasonable.
| If this is approved, I'll implement it this weekend.


--Lars M.