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.

classification
Title: Py30a5: str.replace() tiny doc error
Type: Stage:
Components: Documentation Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, mark
Priority: normal Keywords:

Created on 2008-05-29 14:08 by mark, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg67491 - (view) Author: Mark Summerfield (mark) * Date: 2008-05-29 14:08
>>> help(str.replace)
Help on method_descriptor:

replace(...)
    S.replace (old, new[, maxsplit]) -> unicode
    
    Return a copy of S with all occurrences of substring
    old replaced by new.  If the optional argument maxsplit is
    given, only the first maxsplit occurrences are replaced.


The variable name maxsplit should be "maxreplacements" or similar.
Also "-> unicode" should be "-> str"
msg67526 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-05-30 07:55
Thanks, fixed in r63808.
msg67527 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-05-30 08:20
Fixed all return types in docstrings of str, bytes, bytearray in r63809.
History
Date User Action Args
2022-04-11 14:56:35adminsetgithub: 47249
2008-05-30 08:20:25georg.brandlsetmessages: + msg67527
2008-05-30 07:55:19georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg67526
2008-05-29 14:08:43markcreate