Skip to content

Commit 6467213

Browse files
committed
Issue #7622: Improve the split(), rsplit(), splitlines() and replace()
methods of bytes, bytearray and unicode objects by using a common implementation based on stringlib's fast search. Patch by Florent Xicluna.
1 parent d0ff51c commit 6467213

File tree

17 files changed

+717
-1442
lines changed

17 files changed

+717
-1442
lines changed

Makefile.pre.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,7 @@ STRINGLIB_HEADERS= \
563563
$(srcdir)/Objects/stringlib/find.h \
564564
$(srcdir)/Objects/stringlib/formatter.h \
565565
$(srcdir)/Objects/stringlib/partition.h \
566+
$(srcdir)/Objects/stringlib/split.h \
566567
$(srcdir)/Objects/stringlib/stringdefs.h \
567568
$(srcdir)/Objects/stringlib/string_format.h \
568569
$(srcdir)/Objects/stringlib/transmogrify.h \

Misc/NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ What's New in Python 2.7 alpha 3?
1212
Core and Builtins
1313
-----------------
1414

15+
- Issue #7622: Improve the split(), rsplit(), splitlines() and replace()
16+
methods of bytes, bytearray and unicode objects by using a common
17+
implementation based on stringlib's fast search. Patch by Florent Xicluna.
18+
1519
- Issue #7632: Fix a crash in dtoa.c that occurred in debug builds
1620
when parsing certain long numeric strings corresponding to subnormal
1721
values. Also fix a number of bugs in dtoa.c that could lead to

0 commit comments

Comments
 (0)