[New-bugs-announce] [issue2999] Py30a5: str.replace() tiny doc error

Mark Summerfield report at bugs.python.org
Thu May 29 16:08:44 CEST 2008

New submission from Mark Summerfield <mark at qtrac.eu>:

>>> 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"

assignee: georg.brandl
components: Documentation
messages: 67491
nosy: georg.brandl, mark
severity: normal
status: open
title: Py30a5: str.replace() tiny doc error
versions: Python 3.0

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list