]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
mymemreplace(), strop_replace(): Add support for optional 4th argument
authorBarry Warsaw <barry@python.org>
Sat, 29 Nov 1997 00:10:07 +0000 (00:10 +0000)
committerBarry Warsaw <barry@python.org>
Sat, 29 Nov 1997 00:10:07 +0000 (00:10 +0000)
commitf577c0868366c26dae26b7a04833f431a5c49b2e
tree7209c85bc9112991ab1e3e4c15c517e5de6c6374
parentffbc17da1925257c3a336129d5a681b0775da057
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.
Modules/stropmodule.c