[New-bugs-announce] [issue16922] ElementTree.findtext() returns empty bytes object instead of empty string

Serhiy Storchaka report at bugs.python.org
Thu Jan 10 19:10:33 CET 2013


New submission from Serhiy Storchaka:

>>> import xml.etree.cElementTree as ET
>>> ET.XML('<root><empty /></root>').findtext('empty')
b''

----------
components: XML
files: etree_finditer_empty.patch
keywords: patch
messages: 179580
nosy: eli.bendersky, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: ElementTree.findtext() returns empty bytes object instead of empty string
type: behavior
versions: Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file28675/etree_finditer_empty.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16922>
_______________________________________


More information about the New-bugs-announce mailing list