2011-05-11 12:30:18 Tomáš Chvátal napisał(a): > Dne 10.5.2011 23:21, Arfrever Frehtes Taifersar Arahesis napsal(a): > > PyXML is dead: > > http://mail.python.org/pipermail/xml-sig/2004-November/010735.html > > http://mail.python.org/pipermail/xml-sig/2006-June/011545.html > > > > PyXML provides _xmlplus module, which replaces xml module (from standard > > library) at run time, > > which might result in various problems. > > > > I'm planning to implement the following solution: > > - Python >=2.7.1-r2:2.7 will provide xml.use_pyxml() function. Calling of > > this function will be > > necessary to use replace xml module with _xmlplus module. Python > > >=2.7.1-r2:2.7 will be added > > to the tree in next week and will be temporarily package.masked. Later > > this change will be > > backported to new versions in older slots. > > - All packages, which use PyXML, will have to be patched to call > > xml.use_pyxml(). The following > > code should be added before first import of anything from xml module: > > > > import xml > > if hasattr(xml, "use_pyxml"): > > xml.use_pyxml() > > > > This code works with previous versions of Python, so no changes in > > dependencies are needed. > > > Apart from not being developed is PyXML actualy broken so we can't wait > for upstream [1] to migrate their packages?
PyXML provides code from 2004. Since then, there were many fixes in stdlib xml module. The following commands test code from xml module (which might be _xmlplus) and show problems when PyXML is installed: python2.7 -m test.test_minidom python2.7 -m test.test_pyexpat python2.7 -m test.test_sax -- Arfrever Frehtes Taifersar Arahesis
signature.asc
Description: This is a digitally signed message part.
