Title: Py30a5: str.replace() tiny doc error
Type: Stage:
Components: Documentation Versions: Python 3.0
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 2008-05-30 08:20 by georg.brandl. 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:

    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.
Date User Action Args
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