S
ssecorp
if i want to make a string downcase, is upper().swapcase() the onyl
choice? there is no downer() ?
choice? there is no downer() ?
if i want to make a string downcase, is upper().swapcase() the onyl
choice? there is no downer() ?
if i want to make a string downcase, is upper().swapcase() the onyl
choice? there is no downer() ?
ssecorp said:if i want to make a string downcase, is upper().swapcase() the onyl
choice?
> there is no downer() ?
ssecorp said:if i want to make a string downcase, is upper().swapcase() the onyl
choice? there is no downer() ?
If you are not being a troll, there are two easy ways to answer such a
question.
If you are not being a troll, there are two easy ways to answer such a
question.
[snip]
Reading the manual backwards as the OP seems to have done ("upper",
"swapcase", ...) one finds:
"""
swapcase( )
Return a copy of the string with uppercase characters converted to
lowercase and vice versa.
"""
Out of the possible diagnoses (trolling, incredible stupidity, feeble
joke attempt) of the cause of the ensuing upper/downer question, I'm
going with the third.
Out of the possible diagnoses (trolling, incredible stupidity, feeble
joke attempt) of the cause of the ensuing upper/downer question, I'm
going with the third.
Never ascribe to humour that which can be adequately explained by
increadible stupidity! On the other hand given up/down vs. high/low,
upper/downer might appear logical to someone who doesn't know that
"downcase" is called 'lowercase.'
Grant said:Not only does one need to be familiar with English, but one
also has to be familiar with somewhat obscure terms dervied
from ancient typsetting practices. In other contexts, downer is
definitely the obvious converse of upper.
He knows that s.upper().swapcase() does the job, without having read
the swapcase docs where it is screamingly obvious that lowercase is
the antonym of uppercase???
Asun said:Never ascribe to humour that which can be adequately explained by
increadible stupidity! On the other hand given up/down vs. high/low,
upper/downer might appear logical to someone who doesn't know that
"downcase" is called 'lowercase.'
prior exposure to Ruby might explain this, right? (iirc, they use
"upcase" and "downcase").
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.