Stefan Krah <stefan-use...@bytereef.org> added the comment:

I'm only using the function with the NULL error handler. If I had
to use 'xmlcharrefreplace', presumably I'd overallocate 'output'
for the worst case scenario: sizeof("&#4294967295") per encoded
character.

It's hard to tell if people are using this feature. PyUnicode_EncodeDecimal()
was always undocumented (#8646), but part of the official Unicode API.

----------

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

Reply via email to