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.
Created on 2008年07月04日 19:26 by terry.reedy, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg69263 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2008年07月04日 19:26 | |
In 3.0b1, several str methods have 'Unicode' in their docstrings leftover from 2.x when str *was* unicode. For center count ljust rjust translate 'Unicode' should be deleted before 'string'. For 'translate', I presume 'Unicode ordinal' should be left as is as was done for 'maketrans'. For lstrip rstrip strip "If chars is a str, it will be converted to unicode before stripping" should be deleted. Bytes (which replace old str) and bytearrays are not automatically converted. Other fixes For maketrans the word 'then' should be removed from 'will then be' in the fourth line since it only confuses. The conversion is the first and only thing done in the one-argument case. For lstrip rstrip strip remove ', Unicode' from "TypeError: <x>strip arg must be None, unicode or str" For ljust rjust "TypeError: The fill character cannot be converted to Unicode" should be changed to TypeError: The fill character cannot be implicitly converted to str" or even, copying from several other method error messages TypeError: Can't convert 'bytes' object to str implicitly" or perhaps best would be "TypeError: For the fill char, can't convert 'bytes' object to str implicitly" The other methods taking str args seem to have been updated already. |
|||
| msg69266 - (view) | Author: Benjamin Peterson (benjamin.peterson) * (Python committer) | Date: 2008年07月04日 19:55 | |
Thanks! Done in r64716. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:36 | admin | set | github: 47534 |
| 2008年07月04日 19:55:54 | benjamin.peterson | set | status: open -> closed nosy: + benjamin.peterson resolution: fixed messages: + msg69266 |
| 2008年07月04日 19:26:08 | terry.reedy | create | |