File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1579,6 +1579,9 @@ expression support in the :mod:`re` module).
1579
1579
range [*start *, *end *]. Optional arguments *start * and *end * are
1580
1580
interpreted as in slice notation.
1581
1581
1582
+ If *sub * is empty, returns the number of empty strings between characters
1583
+ which is the length of the string plus one.
1584
+
1582
1585
1583
1586
.. method :: str.encode(encoding="utf-8", errors="strict")
1584
1587
@@ -2658,6 +2661,9 @@ arbitrary binary data.
2658
2661
The subsequence to search for may be any :term: `bytes-like object ` or an
2659
2662
integer in the range 0 to 255.
2660
2663
2664
+ If *sub * is empty, returns the number of empty slices between characters
2665
+ which is the length of the bytes object plus one.
2666
+
2661
2667
.. versionchanged :: 3.3
2662
2668
Also accept an integer in the range 0 to 255 as the subsequence.
2663
2669
You can’t perform that action at this time.
0 commit comments