Mailinglist Archive: opensuse-factory (241 mails)
| < Previous | Next > |
Re: [opensuse-factory] python-elementtree in Factory
- From: James Oakley <jfunk@xxxxxxxxxxxxxx>
- Date: Mon, 26 Feb 2007 16:01:39 -0400
- Message-id: <200702261601.39590.jfunk@xxxxxxxxxxxxxx>
On Monday 26 February 2007 11:12 am, Christoph Thiel wrote:
> > A list of differences can be found at
> > http://codespeak.net/lxml/compatibility.html
>
> Are you sure this is really the in-tree Python 2.5 etree.xml? It looks like
> a different thing to me -- at first glace.
Ah, you're right. lxml.etree is an ElementTree implementation under lxml, and
xml.etree is a subset of Fredrik Lundh's module.
> > I have no problem porting my code, but other people may have trouble. Why
> > not make ElementTree raise a DeprecationWarning for a short period to
> > give people a chance to catch up?
>
> I guess we can add the package back, in case it really turns out to be a
> problem. But as of today I'm not aware of any.
According to this, xml.etree is a subset of the full distribution:
http://docs.python.org/whatsnew/modules.html#SECTION0001420000000000000000
For myself, this is not really a problem, since I can update my code and I
only use core features. However, there are plenty of programs that use
ElementTree directly that are not supplied in OpenSUSE. I know of a couple of
programs that are using local forks of some of my code using ElementTree.
--
James Oakley
jfunk@xxxxxxxxxxxxxx
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx
> > A list of differences can be found at
> > http://codespeak.net/lxml/compatibility.html
>
> Are you sure this is really the in-tree Python 2.5 etree.xml? It looks like
> a different thing to me -- at first glace.
Ah, you're right. lxml.etree is an ElementTree implementation under lxml, and
xml.etree is a subset of Fredrik Lundh's module.
> > I have no problem porting my code, but other people may have trouble. Why
> > not make ElementTree raise a DeprecationWarning for a short period to
> > give people a chance to catch up?
>
> I guess we can add the package back, in case it really turns out to be a
> problem. But as of today I'm not aware of any.
According to this, xml.etree is a subset of the full distribution:
http://docs.python.org/whatsnew/modules.html#SECTION0001420000000000000000
For myself, this is not really a problem, since I can update my code and I
only use core features. However, there are plenty of programs that use
ElementTree directly that are not supplied in OpenSUSE. I know of a couple of
programs that are using local forks of some of my code using ElementTree.
--
James Oakley
jfunk@xxxxxxxxxxxxxx
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx
| < Previous | Next > |