]> granicus.if.org Git - python/commit
PyObject_Str() ensures that the result string is ready
authorVictor Stinner <victor.stinner@haypocalc.com>
Sun, 20 Nov 2011 18:48:36 +0000 (19:48 +0100)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sun, 20 Nov 2011 18:48:36 +0000 (19:48 +0100)
commit4ead7c7be8089de7cab5db7d2a75e6bec5b55f10
tree7917a647fd0e2bf4e29c6ce5f0624de1f52b0c55
parent2b979bfa3c27636fe298b7c5d8f17354bd2b566c
PyObject_Str() ensures that the result string is ready
and check the string consistency.

_PyUnicode_CheckConsistency() doesn't check the hash anymore. It should be
possible to call this function even if hash(str) was already called.
Objects/object.c
Objects/unicodeobject.c