From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QMP2r-0005a0-Ja for garchives@archives.gentoo.org; Tue, 17 May 2011 18:31:01 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2EE421C249; Tue, 17 May 2011 18:30:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 27A941C231 for ; Tue, 17 May 2011 18:29:59 +0000 (UTC) Received: from afta-gentoo.localnet (8-134-251-94.net.stream.pl [94.251.134.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: arfrever) by smtp.gentoo.org (Postfix) with ESMTPSA id 540801B4054 for ; Tue, 17 May 2011 18:29:58 +0000 (UTC) From: Arfrever Frehtes Taifersar Arahesis To: Gentoo Development Subject: Re: [gentoo-dev] PyXML Date: Tue, 17 May 2011 20:29:57 +0200 User-Agent: KMail/1.13.6 (Linux/2.6.34-tuxonice-r8-AFTA; KDE/4.4.5; x86_64; ; ) References: <201105102321.31616.Arfrever@gentoo.org> <20110517171157.GC12874@halcy0n.com> In-Reply-To: <20110517171157.GC12874@halcy0n.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2109158.e1UmmUaOdi"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201105172029.57817.Arfrever@gentoo.org> X-Archives-Salt: X-Archives-Hash: 83e1d40c01d8bdaa9977310160e9260a --nextPart2109158.e1UmmUaOdi Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 2011-05-17 19:11:57 Mark Loeser napisa=C5=82(a): > Arfrever Frehtes Taifersar Arahesis 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 > >=20 > > PyXML provides _xmlplus module, which replaces xml module (from standar= d library) at run time, > > which might result in various problems. > >=20 > > I'm planning to implement the following solution: > > - Python >=3D2.7.1-r2:2.7 will provide xml.use_pyxml() function. Callin= g of this function will be > > necessary to use replace xml module with _xmlplus module. Python >=3D= 2.7.1-r2:2.7 will be added > > to the tree in next week and will be temporarily package.masked. Late= r this change will be > > backported to new versions in older slots. > > - All packages, which use PyXML, will have to be patched to call xml.us= e_pyxml(). The following > > code should be added before first import of anything from xml module: > >=20 > > import xml > > if hasattr(xml, "use_pyxml"): > > xml.use_pyxml() >=20 > 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, wh= ich use xml module, and 1 package installed, which needs PyXML, then the other packages were su= ffering from using old code with more bugs. =2D-=20 Arfrever Frehtes Taifersar Arahesis --nextPart2109158.e1UmmUaOdi Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJN0r6lAAoJEE70JXb4HvNVcvMP/iTntTP2VDevFOZMg5GJfRPJ wzolUTJQy0XwpQ0zCOR9qZeh1boIbsXRmJNwX1wV7fW4zKTiAmqK4fkrHI0qMvGQ 5ipv29IFyOv0dqTIpYFXSLt1pCx/xF1Z4nLMmCTTGktW7WfH/rp+dS1IE2Wf58x0 3YyrgEJwTZCe846NBTk3UgJVVuAwOENUy4yI+waPoFytwgTRQI1CnP8AE9kxuxcV 9Yp2ChkjdnasFFLr/dvgu2Fdge1QIwgjl+9GVAqqNT04rLC/xu+CiQwyfRDavjH7 bIPN3JFqZOry23X1GtfiMUXsRNny9selVZbOfbtfPUWS87oYq7Zldpk2hCJj0BWF 4f50AM2dnHjlC+dBvI/kZyjyR4v4mtRufOFHQ/0bDJv2b4P5m1Nah+i4iMFqd+7V wArvk9xLeNnYWnVeOc61BNrY8ZQ5ZbuF3YmauYXQ1fxnR7wr270FejZweoBwiqJA 1zpYlj4tloALNWiVsDabi37PV9KfUmjIX11yX0eHhd05yFkePVQ/JQNjKpQsmR4i RFyQ62Tod9H2r6DLd1iyD+ZiaS4GTFIfxKMK9b7wmszo+i+IzCAk6y9l+n+TJnas hfV1KwHdu9rzPz0YsYcT6tO7bXFLNVbooMpezhnGRQUbqkgg56cegV71qiLoMS9d dU5leUszi71aygAR/LTC =WfWp -----END PGP SIGNATURE----- --nextPart2109158.e1UmmUaOdi--