[issue20612] cElementTree has problems with StringIO object containing unicode content

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> wont fix stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Pyt

[issue20612] cElementTree has problems with StringIO object containing unicode content

2016-11-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue20612] cElementTree has problems with StringIO object containing unicode content

2015-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For now cElementTree parser just stops parsing when has read something that is not exactly of type str. Eli, Stefan, it is not hard to make cElementTree supporting Unicode streams, only few lines of code. But is it worth to do this on this stage? Or we have

[issue20612] cElementTree has problems with StringIO object containing unicode content

2014-02-12 Thread Serhiy Storchaka
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'' >>> CSIO(uxml).read() '' cElementTree.parse() works only with binary streams. -- nosy:

[issue20612] cElementTree has problems with StringIO object containing unicode content

2014-02-12 Thread Allan Crooks
New submission from Allan Crooks: There seems to be a specific issue when using cElementTree.parse on a StringIO object containing unicode text - it generates a ParseError. I've tried variations of ElementTree and cElementTree, variations of StringIO and cStringIO, and used str and unicode typ