]> granicus.if.org Git - python/commit
Close #14085: remove assertions from PyUnicode_WRITE macro
authorVictor Stinner <victor.stinner@gmail.com>
Sun, 4 Mar 2012 00:34:37 +0000 (01:34 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Sun, 4 Mar 2012 00:34:37 +0000 (01:34 +0100)
commitc9590ad745caa9fc76a8373d19e8019d90e8f9e8
treef4ef97eba8cadeb127abe6f63d6ec0bf5e3b3196
parentd263d185534a8c19b719f27f5dab757afbc9319e
Close #14085: remove assertions from PyUnicode_WRITE macro

Add checks in PyUnicode_WriteChar() and convert PyUnicode_New() assertion to a
test raising a Python exception.
Include/unicodeobject.h
Objects/unicodeobject.c