[lxml-dev] lxml 2.1alpha1 released
Stefan Behnel
stefan_ml at behnel.de
Thu Mar 27 17:55:33 CET 2008
Hi all,
the first alpha release of lxml 2.1 is on PyPI. This is a "cleanup and new
features" release that follows the current stable 2.0 series. The major new
features are XSLT extension elements and support for comments/PIs in iterparse().
A lot of formerly deprecated API functions were finally removed, so you may
have to adapt your code (a little). After the change, it will continue to run
with both lxml 2.0.x and 2.1.
Have fun,
Stefan
2.1alpha1 (2008-03-27)
Features added
* New event types 'comment' and 'pi' in iterparse().
* XSLTAccessControl instances have a property options that returns a
dict of access configuration options.
* Constant instances DENY_ALL and DENY_WRITE on XSLTAccessControl class.
* Extension elements for XSLT (experimental!)
* Element.base property returns the xml:base or HTML base URL of an
Element.
* docinfo.URL property is writable.
Bugs fixed
* Default encoding for plain text serialisation was different from that
of XML serialisation (UTF-8 instead of ASCII).
Other changes
* Minor API speed-ups.
* The benchmark suite now uses tail text in the trees, which makes the
absolute numbers incomparable to previous results.
* Generating the HTML documentation now requires Pygments, which is used
to enable syntax highlighting for the doctest examples.
Most long-time deprecated functions and methods were removed:
* etree.clearErrorLog(), use
etree.clear_error_log()
* etree.useGlobalPythonLog(), use
etree.use_global_python_log()
* etree.ElementClassLookup.setFallback(), use
etree.ElementClassLookup.set_fallback()
* etree.getDefaultParser(), use
etree.get_default_parser()
* etree.setDefaultParser(), use
etree.set_default_parser()
* etree.setElementClassLookup(), use
etree.set_element_class_lookup()
Note that parser.setElementClassLookup() has not been removed yet,
although parser.set_element_class_lookup() should be used instead.
* xpath_evaluator.registerNamespace(), use
xpath_evaluator.register_namespace()
* xpath_evaluator.registerNamespaces(), use
xpath_evaluator.register_namespaces()
* objectify.setPytypeAttributeTag, use
objectify.set_pytype_attribute_tag
* objectify.setDefaultParser(), use
objectify.set_default_parser()
More information about the lxml-dev
mailing list