Issue 22792: string replace() not documented (original) (raw)
Issue22792
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) * ![]() |
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) * ![]() |
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) * ![]() |
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:09 | admin | set | github: 66981 |
2014-11-04 15:57:37 | r.david.murray | set | nosy: + r.david.murraymessages: + |
2014-11-04 10:24:49 | georg.brandl | set | status: open -> closednosy: + georg.brandlmessages: + resolution: works for me |
2014-11-04 10:22:00 | eryksun | set | nosy: + docs@python, eryksunmessages: + assignee: docs@pythoncomponents: + Documentation, - Distutils |
2014-11-04 09:50:41 | housetier | create |