Serhiy Storchaka added the comment:

cStringIO.StringIO() can contains only str (unicode automatically coerced to 
str), while StringIO.StringIO() can contain str or unicode.

>>> SIO(uxml).read()
u'<simple />'
>>> CSIO(uxml).read()
'<simple />'

cElementTree.parse() works only with binary streams.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20612>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to