commit | f577c0868366c26dae26b7a04833f431a5c49b2e | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Sat Nov 29 00:10:07 1997 +0000 |
committer | Barry Warsaw <barry@python.org> | Sat Nov 29 00:10:07 1997 +0000 |
tree | 7209c85bc9112991ab1e3e4c15c517e5de6c6374 | |
parent | ffbc17da1925257c3a336129d5a681b0775da057 [diff] |
mymemreplace(), strop_replace(): Add support for optional 4th argument maxsplit which is implemented in string.py but wasn't here. The reference manual doesn't define what happens when maxsplit is negative or larger than the number of occurrences, but in either case, I implemented this as all get replaced. Default value is zero which replaces all occurrences.