commit | 26015494f2bbbae9910e94240f190ce9551c3549 | [log] [tgz] |
---|---|---|
author | Skip Montanaro <skip@pobox.com> | Sat Dec 08 15:33:24 2007 +0000 |
committer | Skip Montanaro <skip@pobox.com> | Sat Dec 08 15:33:24 2007 +0000 |
tree | ceb9f04c72b0308c32995c90584e6b9e4f0492af | |
parent | 546624609e814d91a4d4fc6ad65c100309bac160 [diff] [blame] |
When splitting, avoid making a copy of the string if the split doesn't find anything (issue 1538).
diff --git a/Misc/NEWS b/Misc/NEWS index efcb6c0..4db5c3d 100644 --- a/Misc/NEWS +++ b/Misc/NEWS
@@ -12,6 +12,9 @@ Core and builtins ----------------- +- Issue #1538: Avoid copying string in split/rsplit if the split + char is not found. + - Issue #1553: An erroneous __length_hint__ can make list() raise a SystemError.