Issue222875

classification
Title: capitalize seems incorrect
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: bckfnn
Priority: low Keywords:

Created on 2000-11-18.19:47:09 by bckfnn, last changed 2000-11-18.23:20:33 by bckfnn.

Messages
msg199 (view) Author: Finn Bock (bckfnn) Date: 2000-11-18.19:47:09
the method capitalize on String objects seems to incorrectly capitalize the
first letter of the word, but then un-capitalize letters that might be
capitalized in the word, in other words it basaically does a swap:

>> s = "a String"
>> s.capitalize() 
'A string'

I would think rather it should be:

'A String' 

msg200 (view) Author: Finn Bock (bckfnn) Date: 2000-11-18.23:20:33
Not a bug. CPython-20 does the same.
History
Date User Action Args
2000-11-18 19:47:09bckfnncreate