lists, uppercase?
Magnus Lie Hetland
mlh at vier.idi.ntnu.no
Wed Feb 6 00:17:34 EST 2002
In article <3C59CD86.A173232D at engcorp.com>, Peter Hansen wrote:
>Magnus Lie Hetland wrote:
>> if myString.isupper():
>> # it's all uppercase
>
>Almost, but not quite:
>
>From 2.2.6.1 String Methods in the 2.2 documentation:
> isupper() : Return true if all cased characters in the string are uppercase
> and there is at least one cased character, false otherwise.
>
>In other words, it is possible for a string to contain characters which are
>not uppercase and yet isupper() returns true.
And by "not uppercase" you mean "not cased", such as numbers and
special characters? I'd say the definition is pretty natural.
>So it all depends on the real requirement. What does "totally
>uppercase" mean to the OP?
Sure.
>-Peter
--
Magnus Lie Hetland The Anygui Project
http://hetland.org http://anygui.org
More information about the Python-list
mailing list