diff options
| author | Guido van Rossum <guido@python.org> | 2002-09-23 20:49:43 (GMT) |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2002-09-23 20:49:43 (GMT) |
| commit | a9858559d682804186cafae63af397b2b34f77fe (patch) | |
| tree | 18b1109662d5e5295d4f01ca62511f3702e5198e /Modules/structmodule.c | |
| parent | 1c4a45761c6654e5877ca767b607cf4e5b3c0e2c (diff) | |
| download | cpython-a9858559d682804186cafae63af397b2b34f77fe.zip cpython-a9858559d682804186cafae63af397b2b34f77fe.tar.gz cpython-a9858559d682804186cafae63af397b2b34f77fe.tar.bz2 | |
Backport 1.56 and 1.68 from trunk:
1.56:
Apply diff3.txt from SF patch http://www.python.org/sf/536241
If a str or unicode method returns the original object,
make sure that for str and unicode subclasses the original
will not be returned.
This should prevent SF bug http://www.python.org/sf/460020
from reappearing.
1.68:
Fix SF bug 599128, submitted by Inyeol Lee: .replace() would do the
wrong thing for a unicode subclass when there were zero string
replacements. The example given in the SF bug report was only one way
to trigger this; replacing a string of length >= 2 that's not found is
another. The code would actually write outside allocated memory if
replacement string was longer than the search string.
Diffstat (limited to 'Modules/structmodule.c')
0 files changed, 0 insertions, 0 deletions
