On 12/13/05, "Martin v. Löwis" <martin@v.loewis.de> wrote:
Fredrik Lundh wrote:
> BTW, what's the policy wrt. Jython-specific modules in the standard library?
I don't think there is enough precedence to have a policy. So far, the
only places that explicitly support Jython is the test suite, pickle,
and platform (I wouldn't really count in site here).
Actually there's some Jython-specific code in
xml/sax/__init__.py. Two places, both questionable. One of
them refers to sys.registry. The other appears to be a workaround
for Jython not having 4-argument __import__.
> If the portability problem can be solved by checking things into Jython
> instead, I think I would prefer that.
Yes, it can be solved that way: Jython could implement pyexpat. I
don't know just how crazy that idea is; my impression is that it could
be done, perhaps imperfectly, as a wrapper around SAX.
-j