[Python-Dev] Jython and CPython
Jason Orendorff
jason.orendorff at gmail.com
Wed Dec 14 01:27:17 CET 2005
On 12/13/05, "Martin v. Löwis" <martin at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-dev/attachments/20051213/6310398a/attachment.html
More information about the Python-Dev
mailing list