summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.5.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-05-31 06:15:51 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-05-31 06:15:51 (GMT)
commitd4ea03c785d659576e0ae65c12fe5c03ada872d0 (patch)
treef1df6f933651ff70bb27a72f3cf518ed406844b9 /Doc/whatsnew/3.5.rst
parent3d4a457663d5b211e9357bd2ccfd60e0b5d9e57b (diff)
downloadcpython-d4ea03c785d659576e0ae65c12fe5c03ada872d0.zip
cpython-d4ea03c785d659576e0ae65c12fe5c03ada872d0.tar.gz
cpython-d4ea03c785d659576e0ae65c12fe5c03ada872d0.tar.bz2
Issue #24284: The startswith and endswith methods of the str class no longer
return True when finding the empty string and the indexes are completely out of range.
Diffstat (limited to 'Doc/whatsnew/3.5.rst')
-rw-r--r--Doc/whatsnew/3.5.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst
index c39d975..ee0e5d1 100644
--- a/Doc/whatsnew/3.5.rst
+++ b/Doc/whatsnew/3.5.rst
@@ -1049,6 +1049,10 @@ Changes in the Python API
program depends on patching the module level variable to capture the debug
output, you will need to update it to capture sys.stderr instead.
+* The :meth:`str.startswith` and :meth:`str.endswith` methods no longer return
+ ``True`` when finding the empty string and the indexes are completely out of
+ range. See :issue:`24284`.
+
Changes in the C API
--------------------