Maciek J <e...@wp.pl> added the comment:

Hm... It turns out that there is a "buffer_text" attribute:
http://docs.python.org/library/pyexpat.html#xml.parsers.expat.xmlparser.buffer_text
And setting this attribute to "True" seems to solve the problem.

It solves my problem, but docs are still very confusing. I see two things that 
should be fixed:
1. In CharacterDataHandler description it should be explicitly noted that data 
may be chunked even if it is short(!).
2. Description of buffer_text attribute should contain a notice that data may 
also be arbitrary chunked if this is set to False. My data _was_not_ chunked at 
new line characters (as the description suggest). It was chunked in the middle 
of a sentence (there were no whitespace in it!).

----------

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

Reply via email to