[issue9091] str.capitalize() should not lower the rest of the string

Terry J. Reedy report at bugs.python.org
Sun Jul 4 03:10:40 CEST 2010


Terry J. Reedy <tjreedy at udel.edu> added the comment:

I disagree and recommend adding " and the rest lowered".
'lower' could be marked as a reference to the .lower method.

If one interprets 'capitalized' as an adjective describing the result, then it is fairly clear. If one interprets it as describing a process applied to only the first char, then is it not clear that something else (the inverse operation) is done to the rest. This additional would complete the description of the operation.

With that addition, 'only' could be removed, so it reads 
"Return a copy of the string with its first character capitalized and the rest lowered."
or 'lower-cased' or 'lowercased' as the editor prefers. Loading 'only' to mean 'and the rest lowered' is a bit much and not necessary.

----------
keywords: +patch
nosy: +tjreedy
resolution: invalid -> 
stage: committed/rejected -> patch review
status: closed -> open

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9091>
_______________________________________


More information about the Python-bugs-list mailing list