[hide private]
[frames] | no frames]

[ Identifiers | Deprecations ]

# Deprecation List

Deprecations in ??._BaseParser.setElementClassLookup

- use `parser.set_element_class_lookup(lookup)` instead.

Deprecations in lxml.etree.XSLT.apply

- call the object, not this method.

Deprecations in lxml.etree.XSLT.tostring

- use str(result_tree) instead.

Deprecations in lxml.etree._Element.getchildren

- Note that this method has been deprecated as of ElementTree 1.3 and lxml 2.0. New code should use `list(element)` or simply iterate over elements.

Deprecations in lxml.etree._Element.getiterator

- Note that this method is deprecated as of ElementTree 1.3 and lxml 2.0. It returns an iterator in lxml, which diverges from the original ElementTree behaviour. If you want an efficient iterator, use the `element.iter()` method instead. You should only use this method in new code if you require backwards compatibility with older versions of lxml or ElementTree.

Deprecations in lxml.etree._ElementTree.getiterator

- Note that this method is deprecated as of ElementTree 1.3 and lxml 2.0. It returns an iterator in lxml, which diverges from the original ElementTree behaviour. If you want an efficient iterator, use the `tree.iter()` method instead. You should only use this method in new code if you require backwards compatibility with older versions of lxml or ElementTree.

Deprecations in lxml.etree._XPathEvaluatorBase.evaluate

- call the object, not its method.

Deprecations in lxml.etree.tounicode

- use `tostring(el, encoding='unicode')` instead.