For each element in `self`, return a copy of the string with all occurrences of substring `old` replaced by `new`. See Also -------- char.replace
(self, old, new, count=None)
| 999 | return asarray(partition(self, sep)) |
| 1000 | |
| 1001 | def replace(self, old, new, count=None): |
| 1002 | """ |
| 1003 | For each element in `self`, return a copy of the string with all |
| 1004 | occurrences of substring `old` replaced by `new`. |
| 1005 | |
| 1006 | See Also |
| 1007 | -------- |
| 1008 | char.replace |
| 1009 | |
| 1010 | """ |
| 1011 | return replace(self, old, new, count if count is not None else -1) |
| 1012 | |
| 1013 | def rfind(self, sub, start=0, end=None): |
| 1014 | """ |