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 @@ -1617,6 +1617,9 @@ expression support in the :mod:`re` module).
16171617 range [*start *, *end *]. Optional arguments *start * and *end * are
16181618 interpreted as in slice notation.
16191619
1620+ If *sub * is empty, returns the number of empty strings between characters
1621+ which is the length of the string plus one.
1622+
16201623
16211624.. method :: str.encode(encoding="utf-8", errors="strict")
16221625
@@ -2698,6 +2701,9 @@ arbitrary binary data.
26982701 The subsequence to search for may be any :term: `bytes-like object ` or an
26992702 integer in the range 0 to 255.
27002703
2704+ If *sub * is empty, returns the number of empty slices between characters
2705+ which is the length of the bytes object plus one.
2706+
27012707 .. versionchanged :: 3.3
27022708 Also accept an integer in the range 0 to 255 as the subsequence.
27032709
You can’t perform that action at this time.
0 commit comments