1 |
PyXML is dead: |
2 |
http://mail.python.org/pipermail/xml-sig/2004-November/010735.html |
3 |
http://mail.python.org/pipermail/xml-sig/2006-June/011545.html |
4 |
|
5 |
PyXML provides _xmlplus module, which replaces xml module (from standard library) at run time, |
6 |
which might result in various problems. |
7 |
|
8 |
I'm planning to implement the following solution: |
9 |
- Python >=2.7.1-r2:2.7 will provide xml.use_pyxml() function. Calling of this function will be |
10 |
necessary to use replace xml module with _xmlplus module. Python >=2.7.1-r2:2.7 will be added |
11 |
to the tree in next week and will be temporarily package.masked. Later this change will be |
12 |
backported to new versions in older slots. |
13 |
- All packages, which use PyXML, will have to be patched to call xml.use_pyxml(). The following |
14 |
code should be added before first import of anything from xml module: |
15 |
|
16 |
import xml |
17 |
if hasattr(xml, "use_pyxml"): |
18 |
xml.use_pyxml() |
19 |
|
20 |
This code works with previous versions of Python, so no changes in dependencies are needed. |
21 |
|
22 |
-- |
23 |
Arfrever Frehtes Taifersar Arahesis |