We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f85c4f commit 7400d88Copy full SHA for 7400d88
1 file changed
tests/basics/string_rsplit.py
@@ -52,3 +52,7 @@
52
print("/*10/*11/*12/*".rsplit("/*", 5))
53
54
print(b"abcabc".rsplit(b"bc", 2))
55
+
56
+# negative "maxsplit" should delegate to .split()
57
+print('abaca'.rsplit('a', -1))
58
+print('abaca'.rsplit('a', -2))
0 commit comments