STINNER Victor <victor.stin...@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.stin...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue14339> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com