[XML-SIG] easySAX
Fred L. Drake
Fred L. Drake, Jr." <fdrake@acm.org
Mon, 24 May 1999 13:00:21 -0400 (EDT)
Paul Prescod writes:
> I was thinking that deprecating it would just mean that new people would
> stop using it. As regex says: "This module is obsolete as of Python
This could be done easily enough (technically; this would still have
to pass through Guido, but I think he's open to the SIG's suggestions
on this stuff).
> I kind of think that the current interface is too large and complicated
> already. easySax was going to be something like 6 or 8 callbacks. xmllib
> is already something like 16 or 17.
There are a lot, but I'm not sure it's a huge problem. I don't know
why there's setnomoretags(), and I'd expect setliteral() and
translate_references() should be internal and undocumented.
I'd also think the default behavior of handle_cdata() should be to
pass the data along to handle_data(), but that's a separate issue.
> Another option would be to merge the interfaces but deprecate all but the
> 6 or 8 *methods*. handle_charref, handle_entityref, handle_cdata and many
I'd be interested in seeing a specific synopsis for your simplified
interface; perhaps just a class declaration with docstrings?
-Fred
--
Fred L. Drake, Jr. <fdrake@acm.org>
Corporation for National Research Initiatives