Christopher Reimer wrote:
str.islower(): "Return true if all cased characters [4] in the string
are lowercase and there is at least one cased character, false otherwise."
str.isupper(): "Return true if all cased characters [4] in the string
are uppercase and there is at least one cased character, false otherwise."
A string consisting of a single space doesn't contain any
cased characters, so both islower(" ") and isupper(" ")
return false according to these rules. The docs are correct.
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list