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.

classification
Title: string replace() not documented
Type: enhancement Stage:
Components: Documentation Versions: Python 3.4
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, dstufft, eric.araujo, eryksun, georg.brandl, housetier, r.david.murray
Priority: normal Keywords:

Created on 2014-11-04 09:50 by housetier, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (4)
msg230601 - (view) Author: (housetier) Date: 2014-11-04 09:50
https://docs.python.org/3.4/library/string.html does not explain the replace() function. I suppose it is very similar, if not identical, to 2.7: https://docs.python.org/2.7/library/string.html#string.replace
msg230604 - (view) Author: Eryk Sun (eryksun) * (Python triager) Date: 2014-11-04 10:22
Follow the "String Methods" link at the top of the string module documentation. Or use this link:

https://docs.python.org/3.4/library/stdtypes.html#str.replace

See also help(str.replace) and help(str) in the interactive shell.
msg230606 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2014-11-04 10:24
There is already a "see also: string methods" at the top of the page.
msg230633 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2014-11-04 15:57
To clarify for the OP: in python3 the 'string' module does not contain a replace function, whereas in 2.7 it did.  'replace' is only a method on str in python3, whereas in 2.7 it is both an str method and a function in the string module.
History
Date User Action Args
2022-04-11 14:58:09adminsetgithub: 66981
2014-11-04 15:57:37r.david.murraysetnosy: + r.david.murray
messages: + msg230633
2014-11-04 10:24:49georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg230606

resolution: works for me
2014-11-04 10:22:00eryksunsetnosy: + docs@python, eryksun
messages: + msg230604

assignee: docs@python
components: + Documentation, - Distutils
2014-11-04 09:50:41housetiercreate