> Date: 2012年9月13日 09:42:47 -0400 > To: <docs at python.org> > Subject: [docs] Problem with the documentation for string.replace >> >From http://docs.python.org/library/string.html >> string.replace(str, old, new[, maxreplace])?<http://docs.python.org/library/string.html#string.replace> > Return a copy of string str with all occurrences of substring old replaced by new. If the optional argument maxreplace is given, the first maxreplace occurrences are replaced. >> it would appear this needs to be > string.replace(old, new[, maxreplace])?<http://docs.python.org/library/string.html#string.replace> Hi Pradyot, thanks for the report. I created an issue in the tracker for this here: http://bugs.python.org/issue16072 --Chris