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).
1617
1617
range [*start *, *end *]. Optional arguments *start * and *end * are
1618
1618
interpreted as in slice notation.
1619
1619
1620
+ If *sub * is empty, returns the number of empty strings between characters
1621
+ which is the length of the string plus one.
1622
+
1620
1623
1621
1624
.. method :: str.encode(encoding="utf-8", errors="strict")
1622
1625
@@ -2698,6 +2701,9 @@ arbitrary binary data.
2698
2701
The subsequence to search for may be any :term: `bytes-like object ` or an
2699
2702
integer in the range 0 to 255.
2700
2703
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
+
2701
2707
.. versionchanged :: 3.3
2702
2708
Also accept an integer in the range 0 to 255 as the subsequence.
2703
2709
You can’t perform that action at this time.
0 commit comments