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 eric.smith
Recipients Dionysis.Zindros, docs@python, eric.smith
Date 2015-01-19.14:13:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1421676834.33.0.886161957596.issue23271@psf.upfronthosting.co.za>
In-reply-to
Content
The example is correct. If you type it into a python interpreter, you get the results as shown in the example.

The .replace() method does not modify the string s. It returns the new value. In the example, the new value is displayed, but is not assigned back to s, so s does not change.
History
Date User Action Args
2015-01-19 14:13:54eric.smithsetrecipients: + eric.smith, docs@python, Dionysis.Zindros
2015-01-19 14:13:54eric.smithsetmessageid: <1421676834.33.0.886161957596.issue23271@psf.upfronthosting.co.za>
2015-01-19 14:13:54eric.smithlinkissue23271 messages
2015-01-19 14:13:54eric.smithcreate