2011-05-17 19:11:57 Mark Loeser napisał(a): > Arfrever Frehtes Taifersar Arahesis <[email protected]> said: > > 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() > > Is this "use_pyxml" upstream?
Python 2 is dead, so new features will never be added to Python 2 by Python upstream. Before addition of xml.use_pyxml(), if user had many packages installed, which use xml module, and 1 package installed, which needs PyXML, then the other packages were suffering from using old code with more bugs. -- Arfrever Frehtes Taifersar Arahesis
signature.asc
Description: This is a digitally signed message part.
