Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libstdtypes.tex @ 30706:be0ca26ad574 2.3
Patch #825679: Clarify semantics of .isfoo on empty strings.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sat, 18 Oct 2003 09:54:38 +0000 |
| parents | 04bcfdcf290a |
| children | 6fdde96a7222 |
line wrap: on
line diff
--- a/Doc/lib/libstdtypes.tex Sat Oct 18 09:37:12 2003 +0000 +++ b/Doc/lib/libstdtypes.tex Sat Oct 18 09:54:38 2003 +0000 @@ -613,7 +613,8 @@ \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 @@ \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}{}
