R. David Murray added the comment:

This kind of thing is why python3 exists.  Presumably some bit of the 
elementree code is successfully converting non-ascii into unicode, and then 
when that is mixed with the result it is returning, you end up with unicode.  
But that is just a guess; you'll have to dig into a specific example to figure 
out why it is happening.

Or when you say non-deterministically, do you mean that you have tried to 
reproduce it with a specific entry that returns unicode in the full run and it 
does not reproduce?  Although even in that case it might be due to some complex 
interaction in the non-reduced code...

It might be interesting to run it under python3 and see if anything odd happens 
there...but it will probably just work.

----------
components: +XML
nosy: +r.david.murray

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

Reply via email to