Re: Working towards retiring PyXML

2012-07-31 Thread Nick Coghlan
On 07/31/2012 03:16 PM, Toshio Kuratomi wrote: > On Fri, Jul 27, 2012 at 12:27:31PM +1000, Nick Coghlan wrote: >> On 07/27/2012 07:28 AM, David Malcolm wrote: >>> With my proposed approach, you have to opt-in, your code can say: when I >>> say "xml", I really mean "xml", not "_xmlplus". >> >> You c

Re: Working towards retiring PyXML

2012-07-30 Thread Toshio Kuratomi
On Fri, Jul 27, 2012 at 12:27:31PM +1000, Nick Coghlan wrote: > On 07/27/2012 07:28 AM, David Malcolm wrote: > > With my proposed approach, you have to opt-in, your code can say: when I > > say "xml", I really mean "xml", not "_xmlplus". > > You can do much the same thing at the application level

Re: Working towards retiring PyXML

2012-07-26 Thread Nick Coghlan
On 07/27/2012 07:28 AM, David Malcolm wrote: > With my proposed approach, you have to opt-in, your code can say: when I > say "xml", I really mean "xml", not "_xmlplus". You can do much the same thing at the application level without patching the stdlib: import xml xml.__path__.reverse() # If bot

Re: Working towards retiring PyXML

2012-07-26 Thread David Malcolm
On Thu, 2012-07-26 at 16:03 +1000, Nick Coghlan wrote: > On 07/26/2012 09:10 AM, David Malcolm wrote: > > I did some investigating of how to do this. > > > > The replacement of xml with PyXML in the stdlib happens in > > xml/__init__.py (see e.g. /usr/lib64/python2.7/xml/__init__.py): as > > "xml"

Re: Working towards retiring PyXML

2012-07-25 Thread Nick Coghlan
On 07/26/2012 09:10 AM, David Malcolm wrote: > I did some investigating of how to do this. > > The replacement of xml with PyXML in the stdlib happens in > xml/__init__.py (see e.g. /usr/lib64/python2.7/xml/__init__.py): as > "xml" is imported, it tries to import _xmlplus, and if > _xmlplus.versio

Re: Working towards retiring PyXML

2012-07-25 Thread David Malcolm
On Wed, 2012-07-25 at 13:16 -0700, Toshio Kuratomi wrote: > Last week I stumbled upon the fact that the newest python-docutils does not > pass its unittests if PyXML is installed. Looking into the issue brought me > to the conclusion that retiring PyXML may be the best thing to do as rrakus > (the