diff options
author | Guido van Rossum <guido@python.org> | 1997-01-06 16:50:09 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-01-06 16:50:09 (GMT) |
commit | e0548b8da7a8f45d0f86d14864914357535e2cb6 (patch) | |
tree | 49ae44a0177445c596bbf8b75888fafe95fa6e5c /Include | |
parent | 04d2d15b6bd799e79a1d200ddae133531fdaf561 (diff) | |
download | cpython-e0548b8da7a8f45d0f86d14864914357535e2cb6.zip cpython-e0548b8da7a8f45d0f86d14864914357535e2cb6.tar.gz cpython-e0548b8da7a8f45d0f86d14864914357535e2cb6.tar.bz2 |
Rewrote translate() as follows:
- 'delete' is a C++ keyword; use 'del_table' instead
- apply Py_CHARMASK() to del_table[i] before using it as an index
*** this fixes a bug that was just reported on the list ***
- if the translation didn't make any changes, INCREF and return
the original string
- when del_table is empty or omitted, don't copy the translation
table to a table of ints (should be a bit faster)
Rewrote maketrans() to avoid copying the table (2-3% faster).
Diffstat (limited to 'Include')
0 files changed, 0 insertions, 0 deletions