[docs] [issue21279] str.translate documentation incomplete
Serhiy Storchaka
report at bugs.python.org
Sun Dec 21 17:59:26 CET 2014
Serhiy Storchaka added the comment:
Proposed wording looks superfluously verbose to me.
Look also at description in Include/unicodeobject.h:
/* Translate a string by applying a character mapping table to it and
return the resulting Unicode object.
The mapping table must map Unicode ordinal integers to Unicode
ordinal integers or None (causing deletion of the character).
Mapping tables may be dictionaries or sequences. Unmapped character
ordinals (ones which cause a LookupError) are left untouched and
are copied as-is.
*/
It is repeated (more detailed) in Doc/c-api/unicode.rst. Isn't it pretty clear?
----------
components: +Unicode
nosy: +ezio.melotti, georg.brandl, haypo, serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21279>
_______________________________________
More information about the docs
mailing list