[issue14339] Optimizing bin, oct and hex

STINNER Victor report at bugs.python.org
Fri Apr 27 13:19:55 CEST 2012


STINNER Victor <victor.stinner at gmail.com> added the comment:

> You may call assert(_PyUnicode_CheckConsistency(v, 1)) to ensure
> that the newly created string is "consistent" (see the function
> for the details).

Done in the following changeset:

changeset:   76560:3bdcf0cab164
parent:      76558:5fea362b92fc
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Thu Apr 26 00:37:21 2012 +0200
files:       Objects/longobject.c
description:
long_to_decimal_string() and _PyLong_Format() check the consistency of newly
created strings using _PyUnicode_CheckConsistency() in debug mode

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14339>
_______________________________________


More information about the Python-bugs-list mailing list