lxml 1.2 released

Stefan Behnel stefan.behnel-n05pAM at web.de
Tue Feb 20 14:49:36 CET 2007


Hi all,

lxml 1.2 has been released to the cheeseshop.

http://cheeseshop.python.org/pypi/lxml

This is a somewhat conservative release in that it brings no major new
features. It rather contains a number of bug fixes and cleanups, both
internally and at the API level. Building lxml should have become easier
again, and hacking the build process should now be a lot simpler. The complete
changelog follows.


What is lxml?

"""
lxml is a Pythonic binding for the libxml2 and libxslt libraries. It provides
safe and convenient access to these libraries using the ElementTree API.

It extends the ElementTree API significantly to offer support for XPath,
RelaxNG, XML Schema, XSLT, C14N and much more. Lxml also features a
sophisticated API for custom element classes. This is a simple way to write
arbitrary XML driven APIs on top of lxml. There is a separate module
lxml.objectify that implements a data-binding API on top of lxml.etree.
"""

See the web page for more information and documentation:

http://codespeak.net/lxml/

Have fun,
Stefan


==========
ChangeLog:
==========

1.2 (2007-02-20)
================

Features added
--------------

* Rich comparison of QName objects

* Support for regular expressions in benchmark selection

* get/set emulation (not .attrib!) for attributes on processing instructions

* ElementInclude Python module for ElementTree compatible XInclude processing
  that honours custom resolvers registered with the source document

* ElementTree.parser property holds the parser used to parse the document

* setup.py has been refactored for greater readability and flexibility

* --rpath flag to setup.py to induce automatic linking-in of dynamic library
  runtime search paths has been renamed to --auto-rpath. This makes it
  possible to pass an --rpath directly to distutils; previously this was being
  shadowed.

Bugs fixed
----------

* Element instantiation now uses locks to prevent race conditions with threads

* ElementTree.write() did not raise an exception when the file wasn't writable

* Error handling could crash under Python <= 2.4.1 - fixed by disabling thread
  support in these environments

* Element.find*() did not accept QName objects as path

Other changes
-------------

* code cleanup: redundant _NodeBase super class merged into _Element class
  Note: although the impact should be zero in most cases, this change breaks
  the compatibiliy of the public C-API


More information about the Python-announce-list mailing list