Le mardi 22 novembre 2011 02:02:05, Victor Stinner a écrit :
> This function is broken by design if an error handler is specified: the
> caller cannot know the size of the output buffer, whereas the caller has
> to allocate this buffer.
>
> I propose to raise an error if an error handler (differen
Victor Stinner wrote:
> > Should we document and test it, leave it unchanged and
> > deprecate it, or simply remove it?
>
> If we change PyUnicode_EncodeDecimal() to reject error handlers different
> than
> strict, we can keep this function for some release and deprecate it. The
> function is
Le lundi 21 novembre 2011 21:39:53, Victor Stinner a écrit :
> I'm trying to rewrite PyUnicode_EncodeDecimal() to upgrade it to the new
> Unicode API. The problem is that the function is not accessible in Python
> nor tested.
I added tests for this function in Python 2.7, 3.2 and 3.3.
> PyUnicode