Message53079
| Author |
doerwalter |
| Recipients |
| Date |
2001年01月04日.17:50:43 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
This patch modifies Objects/unicodeobject.c/PyUnicode_TranslateCharmap,
so that the error
PyErr_SetString(PyExc_NotImplementedError,
"1-n mappings are currently not implemented");
no longer occurs. I.e.
u"ab".translate({ord(u"a"): u"bbb", ord(u"b"): u"aaa"})
now works. It does this by exponentially
reallocating the string, when there is no more
available space.
|
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 16:00:01 | admin | link | issue403100 messages |
| 2007年08月23日 16:00:01 | admin | create |
|