diff options
author | Guido van Rossum <guido@python.org> | 1997-12-01 15:25:19 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-12-01 15:25:19 (GMT) |
commit | 06ba34c5d47751f9a5ae8e16bf1a7cf12c871609 (patch) | |
tree | 6d67a46a3a02a63f41d4080eb84612cc5294ac4e /Lib/sunaudio.py | |
parent | 58a88b3e34f7b992a33ee93001bf6d795acd7f32 (diff) | |
download | cpython-06ba34c5d47751f9a5ae8e16bf1a7cf12c871609.zip cpython-06ba34c5d47751f9a5ae8e16bf1a7cf12c871609.tar.gz cpython-06ba34c5d47751f9a5ae8e16bf1a7cf12c871609.tar.bz2 |
In string.split(), honor maxsplit (if > 0).
In string.splitfields(), ignore maxsplit if <= 0, rather than ignoring
maxsplit=0 but effectively treating negative numbers the same as
maxsplit=1. Also made the test for maxsplit slightly more efficient
(set it to the length of the string when <= 0 so the test for its
presence can be omitted from the loop).
Diffstat (limited to 'Lib/sunaudio.py')
0 files changed, 0 insertions, 0 deletions