[lxml-dev] lxml 2.1beta2 released

Stefan Behnel stefan_ml at behnel.de
Fri May 2 20:48:28 CEST 2008


Hi all,

I'm happy to announce the release of lxml 2.1 beta2. It features a couple of
enhancements and fixes over the first beta. The main improvement is the much
more robust threading support, which makes it a lot easier to move subtrees
back and forth between threads. It is described in more detail here:

http://permalink.gmane.org/gmane.comp.python.lxml.devel/3571

Please report back on the list (preferably in reply to the above thread) if
you notice a difference to lxml 2.0 with your code.

Have fun,
Stefan


2.1beta2 (2008-05-02)

Features added

    * All parse functions in lxml.html take a parser keyword argument.
    * lxml.html has a new parser class XHTMLParser and a module attribute
      xhtml_parser that provide XML parsers that are pre-configured for the
      lxml.html package.

Bugs fixed

    * Moving a subtree from a document created in one thread into a document
      of another thread could crash when the rest of the source document is
      deleted while the subtree is still in use.
    * Passing an nsmap when creating an Element will no longer strip
      redundantly defined namespace URIs. This prevented the definition of
      more than one prefix for a namespace on the same Element.

Other changes

    * If the default namespace is redundantly defined with a prefix on the
      same Element, the prefix will now be preferred for subelements and
      attributes. This allows users to work around a problem in libxml2 where
      attributes from the default namespace could serialise without a prefix
      even when they appear on an Element with a different namespace (i.e.
      they would end up in the wrong namespace).


More information about the lxml-dev mailing list