[lxml-dev] Is it bug?
Alexander Kozlovsky
alexander.kozlovsky at gmail.com
Tue Jun 12 14:57:15 CEST 2007
Hello!
I discover some counterintuitive behavior of 'tail' attribute:
>>> from lxml import etree
>>> a = etree.XML('<a><b>text</b>tail</a>')
>>> b = a[0]
>>> print b.tail
tail
>>> a[:] = []
>>> print b.tail
None # EXPECTED: tail
I think, it is bug or at least worth note in documentation
Thank you for the great library, anyway! :)
--
Best regards,
Alexander mailto:alexander.kozlovsky at gmail.com
More information about the lxml-dev
mailing list