[Python-bugs-list] [ python-Bugs-827260 ] Parameter is misnamed in str.replace documentation.

SourceForge.net noreply at sourceforge.net
Mon Oct 20 23:53:15 EDT 2003


Bugs item #827260, was opened at 2003-10-20 23:53
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=827260&group_id=5470

Category: Documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jeremy Fincher (jemfinch)
Assigned to: Nobody/Anonymous (nobody)
Summary: Parameter is misnamed in str.replace documentation.

Initial Comment:
>>> print str.replace.__doc__
S.replace (old, new[, maxsplit]) -> string

Return a copy of string S with all occurrences of substring
old replaced by new.  If the optional argument maxsplit is
given, only the first maxsplit occurrences are replaced.

---

Honestly, that optional parameter really shouldn't be
called "maxsplit" since there's no splitting going on.
 Just plain "max" would be better.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=827260&group_id=5470



More information about the Python-bugs-list mailing list