Serhiy Storchaka added the comment:

1) Expat itself responsible for this guard. It has all necessary information 
and provides an input of required size for custom converter.

2) Yes, this is a problem. I'm working on another approach, when full encoding 
table built at first request for the encoding (and than cache it). It makes 
decoding individual characters fast, but requires about 0.5 sec for 
initialization. Is such approach more suitable?


Python tracker <>
Python-bugs-list mailing list

Reply via email to