summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-06-14 00:50:42 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-06-14 00:50:42 (GMT)
commit1f68fc7fa5048e0576ff26436012765f4a8fa3d4 (patch)
tree2a6269c89b5d90689c29a3aa94f80db58791d1f0 /Doc
parent585775bf118ea8c3450ceaf1fa849140eabf8bd7 (diff)
downloadcpython-1f68fc7fa5048e0576ff26436012765f4a8fa3d4.zip
cpython-1f68fc7fa5048e0576ff26436012765f4a8fa3d4.tar.gz
cpython-1f68fc7fa5048e0576ff26436012765f4a8fa3d4.tar.bz2
SF bug # 493951 string.{starts,ends}with vs slices
Handle negative indices similar to slices.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/whatsnew23.tex4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/whatsnew/whatsnew23.tex b/Doc/whatsnew/whatsnew23.tex
index 0759c9d..6d3651a 100644
--- a/Doc/whatsnew/whatsnew23.tex
+++ b/Doc/whatsnew/whatsnew23.tex
@@ -497,6 +497,10 @@ u'\u4001abc'
>>>
\end{verbatim}
+\item The \method{startswith()} and \method{endswith()}
+string methods now have accept negative numbers for
+start and end parameters.
+
\item Another new string method is \method{zfill()}, originally a
function in the \module{string} module. \method{zfill()} pads a
numeric string with zeros on the left until it's the specified width.