commit | e699e5a21869d8ced1726518044faae45dd22b9c | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Mon Jul 15 18:22:47 2013 +0200 |
committer | Victor Stinner <victor.stinner@gmail.com> | Mon Jul 15 18:22:47 2013 +0200 |
tree | 3a769cd6dbe3964078d798e951d0e9a10b049325 | |
parent | 3de58698647221df4dc0d198bb512e7e80eec818 [diff] |
Issue #18408: Don't check unicode consistency in _PyUnicode_HAS_UTF8_MEMORY() and _PyUnicode_HAS_WSTR_MEMORY() macros These macros are called in unicode_dealloc(), whereas the unicode object can be "inconsistent" if the creation of the object failed. For example, when unicode_subtype_new() fails on a memory allocation, _PyUnicode_CheckConsistency() fails with an assertion error because data is NULL.