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.

Author chris.jerdonek
Recipients asvetlov, chris.jerdonek, docs@python
Date 2012-09-28.12:37:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348835822.48.0.684725096501.issue16072@psf.upfronthosting.co.za>
In-reply-to
Content
[Reopening] It looks like at least *some* change is warranted here.  Notice that all the functions document "s" for the string argument but string.replace() documents "str".  However, we have (in 2.7):

>>> string.replace(str='aab', old='a', new='b')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: replace() got an unexpected keyword argument 'str'
>>> string.replace(s='aab', old='a', new='b')
'bbb'
History
Date User Action Args
2012-09-28 12:37:02chris.jerdoneksetrecipients: + chris.jerdonek, asvetlov, docs@python
2012-09-28 12:37:02chris.jerdoneksetmessageid: <1348835822.48.0.684725096501.issue16072@psf.upfronthosting.co.za>
2012-09-28 12:37:02chris.jerdoneklinkissue16072 messages
2012-09-28 12:37:02chris.jerdonekcreate