homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author einarfd
Recipients einarfd
Date 2012年09月28日.10:51:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348829487.02.0.837389148596.issue16082@psf.upfronthosting.co.za>
In-reply-to
Content
The tostringlist documentation says "Returns a list of (optionally) encoded strings containing the XML data. It does not guarantee any specific sequence, except that "".join(tostringlist(element)) == tostring(element).". 
But in reality it is possible to get tostringlist to return a string and not a list. 
The following code will demonstrates problem, by failing with a TypeError:
from xml.etree.ElementTree import Element, tostringlist, tostring
element = Element("foo")
print ("".join(tostringlist(element)) == tostring(element))
History
Date User Action Args
2012年09月28日 10:51:27einarfdsetrecipients: + einarfd
2012年09月28日 10:51:27einarfdsetmessageid: <1348829487.02.0.837389148596.issue16082@psf.upfronthosting.co.za>
2012年09月28日 10:51:26einarfdlinkissue16082 messages
2012年09月28日 10:51:26einarfdcreate

AltStyle によって変換されたページ (->オリジナル) /