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: Tue, 17 May 2011 18:31:01
Message-Id: 201105172029.57817.Arfrever@gentoo.org
In Reply to: Re: [gentoo-dev] PyXML by Mark Loeser
1 2011-05-17 19:11:57 Mark Loeser napisaƂ(a):
2 > Arfrever Frehtes Taifersar Arahesis <Arfrever@g.o> said:
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 > Is this "use_pyxml" upstream?
23
24 Python 2 is dead, so new features will never be added to Python 2 by Python upstream.
25
26 Before addition of xml.use_pyxml(), if user had many packages installed, which use xml module,
27 and 1 package installed, which needs PyXML, then the other packages were suffering from using
28 old code with more bugs.
29
30 --
31 Arfrever Frehtes Taifersar Arahesis

Attachments

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