diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-10-18 09:55:08 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-10-18 09:55:08 (GMT) |
commit | 6828e18a6a0d63f2203f5043bda0018925244188 (patch) | |
tree | eddebe1c7f67df0286ae57d1862231c946a888e5 /Doc | |
parent | 849a972f35a6740c4784c80a8271af9f5592d7b6 (diff) | |
download | cpython-6828e18a6a0d63f2203f5043bda0018925244188.zip cpython-6828e18a6a0d63f2203f5043bda0018925244188.tar.gz cpython-6828e18a6a0d63f2203f5043bda0018925244188.tar.bz2 |
Patch #825679: Clarify semantics of .isfoo on empty strings.
Backported to 2.3.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libstdtypes.tex | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex index 531e385..ca9724d 100644 --- a/Doc/lib/libstdtypes.tex +++ b/Doc/lib/libstdtypes.tex @@ -613,7 +613,8 @@ is at least one character, false otherwise. \end{methoddesc} \begin{methoddesc}[string]{isdigit}{} -Return true if there are only digit characters, false otherwise. +Return true if all characters in the string are digits and there +is at least one character, false otherwise. \end{methoddesc} \begin{methoddesc}[string]{islower}{} @@ -623,13 +624,14 @@ there is at least one cased character, false otherwise. \begin{methoddesc}[string]{isspace}{} Return true if there are only whitespace characters in the string and -the string is not empty, false otherwise. +there is at least one character, false otherwise. \end{methoddesc} \begin{methoddesc}[string]{istitle}{} -Return true if the string is a titlecased string: uppercase -characters may only follow uncased characters and lowercase characters -only cased ones. Return false otherwise. +Return true if the string is a titlecased string and there is at least one +character, i.e. uppercase characters may only follow uncased +characters and lowercase characters only cased ones. Return false +otherwise. \end{methoddesc} \begin{methoddesc}[string]{isupper}{} |