Gentoo Archives: gentoo-dev

From: Arfrever Frehtes Taifersar Arahesis <Arfrever@g.o>
To: Gentoo Development <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] PyXML
Date: Wed, 11 May 2011 17:54:19
Message-Id: 201105111953.17544.Arfrever@gentoo.org
In Reply to: Re: [gentoo-dev] PyXML by "Tomáš Chvátal"
1 2011-05-11 12:30:18 Tomáš Chvátal napisał(a):
2 > Dne 10.5.2011 23:21, Arfrever Frehtes Taifersar Arahesis napsal(a):
3 > > PyXML is dead:
4 > > http://mail.python.org/pipermail/xml-sig/2004-November/010735.html
5 > > http://mail.python.org/pipermail/xml-sig/2006-June/011545.html
6 > >
7 > > PyXML provides _xmlplus module, which replaces xml module (from standard library) at run time,
8 > > which might result in various problems.
9 > >
10 > > I'm planning to implement the following solution:
11 > > - Python >=2.7.1-r2:2.7 will provide xml.use_pyxml() function. Calling of this function will be
12 > > necessary to use replace xml module with _xmlplus module. Python >=2.7.1-r2:2.7 will be added
13 > > to the tree in next week and will be temporarily package.masked. Later this change will be
14 > > backported to new versions in older slots.
15 > > - All packages, which use PyXML, will have to be patched to call xml.use_pyxml(). The following
16 > > code should be added before first import of anything from xml module:
17 > >
18 > > import xml
19 > > if hasattr(xml, "use_pyxml"):
20 > > xml.use_pyxml()
21 > >
22 > > This code works with previous versions of Python, so no changes in dependencies are needed.
23 > >
24 > Apart from not being developed is PyXML actualy broken so we can't wait
25 > for upstream [1] to migrate their packages?
26
27 PyXML provides code from 2004. Since then, there were many fixes in stdlib xml module.
28
29 The following commands test code from xml module (which might be _xmlplus) and show problems when
30 PyXML is installed:
31 python2.7 -m test.test_minidom
32 python2.7 -m test.test_pyexpat
33 python2.7 -m test.test_sax
34
35 --
36 Arfrever Frehtes Taifersar Arahesis

Attachments

File name MIME type
signature.asc application/pgp-signature