This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients
Date 2004-10-26.01:57:26
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=80475

Thanks for the patch.

I applied a more generic fix. Now, _PyString_Resize()
invalidates the cached hash value on each call.

Also, both the code in ceval.c and the code in
_PyString_Resize already had guards to check ob_sstate, so
no changes were needed for that field.

See:
   Objects/stringobject.c 2.226
   Lib/test/string_tests.py 1.42
History
Date User Action Args
2007-08-23 15:40:22adminlinkissue1054197 messages
2007-08-23 15:40:22admincreate